remorked sections.

This commit is contained in:
2025-09-05 21:42:40 +02:00
parent b8f0893d59
commit 3887748c1a
7 changed files with 44 additions and 67 deletions

View File

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