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