-- tree missmatch

This commit is contained in:
2025-08-22 18:06:11 +02:00
parent e3be14c27b
commit 3c4893f308

View File

@@ -48,11 +48,13 @@ XQItem* XQMainModel::addProjectItem( XQNodePtr contentNode )
// wir durchsuchen alle unsere section nach dem passenden content-type,
// hier: content-type beschreibt die
/*
for(const auto& section : _sections )
{
if( contentNode->attribute( c_ContentType) == section.contentType() )
{
const QString* contentPtr = contentNode->attribute_ptr( "ProjectName" );
// __fixme! das ist mist!
const XQNodePtr sheetNode = section.sheetRootNode()->first_child();
@@ -69,6 +71,7 @@ XQItem* XQMainModel::addProjectItem( XQNodePtr contentNode )
_treeTable->setCurrentIndex( index );
// quellknoten auch speichern
//newItem->setContentNode( contentNode );
//emit itemCreated( newItem );
return list[0];
@@ -76,7 +79,8 @@ XQItem* XQMainModel::addProjectItem( XQNodePtr contentNode )
}
}
.
. */
throw XQException( "addProjectItem: main model should not be empty!" );
}