some fixes
This commit is contained in:
@@ -281,6 +281,10 @@ void XQMainWindow::onTabClicked( int index )
|
||||
|
||||
void XQMainWindow::onSectionCreated( const XQModelSection& section )
|
||||
{
|
||||
if( _currentProjectItem )
|
||||
{
|
||||
;
|
||||
}
|
||||
qDebug() << " --- XXX section created: " << section.contentType() << ":" << section.contentType();
|
||||
}
|
||||
|
||||
@@ -339,9 +343,10 @@ void XQMainWindow::loadDocument( const QString& fileName )
|
||||
childModel->setTreeTable(childTreeView);
|
||||
|
||||
// neuen eintrag im übsichts-baum erzeugen
|
||||
XQItem* newEntry = _mainModelView.makeTreeItem( contentRoot );
|
||||
//_mainTreeView->setCurrentIndex( newEntry->index() );
|
||||
//_documentStore.addDocument( fileName, pTitle, newEntry, childModel );
|
||||
_currentProjectItem = _mainModelView.addProjectItem( contentRoot );
|
||||
_documentStore.addDocument( fileName, pTitle, _currentProjectItem, childModel );
|
||||
|
||||
qDebug() << " --- ZZZ und jetzt:";
|
||||
|
||||
// die Modelstruktur anlegen
|
||||
childModel->initModel( c_ChildModelName );
|
||||
|
Reference in New Issue
Block a user