This commit is contained in:
2025-09-05 17:12:38 +02:00
parent 9c6f7688d7
commit b8f0893d59
6 changed files with 53 additions and 51 deletions

View File

@@ -57,7 +57,8 @@ void XQChildModel::addModelData( const XQNodePtr& contentRoot )
const XQModelSection& section = _sections.sectionByKey( key );
section.setContentRootNode( contentEntry->parent() );
int newRow = _sections.lastRow(section);
// FaRZ!
//int newRow = _sections.lastRow(section);
XQNodePtr sheetNode = section.sheetRootNode();
XQItemList list = _itemFactory.makeRow( sheetNode, contentEntry );
@@ -79,7 +80,8 @@ void XQChildModel::addSectionEntry( const QString& key, const XQNodePtr& content
if(section.isValid() )
{
section.setContentRootNode( contentEntry->parent() );
int newRow = _sections.lastRow(section);
// FARZ!
int newRow = 1;//_sections.lastRow(section);
XQNodePtr sheetNode = section.sheetRootNode();
XQItemList list = _itemFactory.makeRow( sheetNode, nullptr );
insertRow( newRow, list);