-- tree missmatch
This commit is contained in:
@@ -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!" );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user