From 3c4893f308da4ff9dc6fa5de22ea93ed6cb04589 Mon Sep 17 00:00:00 2001 From: "PANIK\\chris" Date: Fri, 22 Aug 2025 18:06:11 +0200 Subject: [PATCH] -- tree missmatch --- src/application/xqmainmodel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/application/xqmainmodel.cpp b/src/application/xqmainmodel.cpp index 64f807e..326ee63 100644 --- a/src/application/xqmainmodel.cpp +++ b/src/application/xqmainmodel.cpp @@ -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!" ); }