Fixed child creation.
This commit is contained in:
@@ -170,7 +170,7 @@ XQItemList XQItemFactory::makeRow(const XQNodePtr& sheetNode, const XQNodePtr& c
|
||||
|
||||
//! Erzeugt kind-items zu einem section-eintrag.
|
||||
|
||||
XQItemList XQItemFactory::makeChildRow( const XQNodePtr& sheetNode, const XQNodePtr& contentNode )
|
||||
XQItemList XQItemFactory::makeChildRow( QStandardItem* parent, const XQNodePtr& sheetNode, const XQNodePtr& contentNode )
|
||||
{
|
||||
XQItemList list;
|
||||
for (const auto& contentChild : contentNode->children())
|
||||
@@ -181,6 +181,10 @@ XQItemList XQItemFactory::makeChildRow( const XQNodePtr& sheetNode, const XQNode
|
||||
{
|
||||
const XQNodePtr& sheetChild = sheetNode->child(contentKey);
|
||||
list = makeRow( sheetChild, contentChild );
|
||||
// als kinder einfügen
|
||||
//insertRow( parent->row()+1, list );
|
||||
parent->appendRow( list );
|
||||
|
||||
}
|
||||
}
|
||||
return list;
|
||||
|
Reference in New Issue
Block a user