remorked sections.
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user