reworked model sections.
This commit is contained in:
@@ -47,20 +47,14 @@ void XQChildModel::setContent( const XQNodePtr& contentRoot )
|
||||
// haben, hier: <Panel>. <Battery> ...
|
||||
for (const auto& contentEntry : _contentRoot->children())
|
||||
{
|
||||
|
||||
qDebug() << " --- GOGOGO: 00: " << contentEntry->to_string();
|
||||
|
||||
// Das ist hier der Typ des Eintrags: Panel, Battery ...
|
||||
QString key = contentEntry->tag_name();
|
||||
qDebug() << " --- GOGOGO: " << key;
|
||||
|
||||
// 'silent failure' hier der Datenbaum kann auch Knoten enthalten
|
||||
// die nicht für uns gedacht sind.
|
||||
if (!_sections.hasValidSection(key))
|
||||
continue;
|
||||
|
||||
qDebug() << " --- GOGOGO: FOUND!" << key;
|
||||
|
||||
XQModelSection& section = _sections.at( key );
|
||||
// wir speichern das parent des datenknoten auch in der
|
||||
// section.
|
||||
@@ -70,8 +64,6 @@ void XQChildModel::setContent( const XQNodePtr& contentRoot )
|
||||
|
||||
XQItemList list = _itemFactory.makeContentRow( section.sheetRootNode, contentEntry );
|
||||
|
||||
qDebug() << " --- AHJA: " << key << " -- last Row dazu: " << newRow;
|
||||
|
||||
// als Baum?
|
||||
//section.headerItem().appendRow( list );
|
||||
insertRow( newRow, list);
|
||||
|
Reference in New Issue
Block a user