some fixes

This commit is contained in:
Christoph Holzheuer
2025-08-18 16:09:47 +02:00
parent 0f7299a74a
commit 429c939cdf
5 changed files with 57 additions and 33 deletions

View File

@@ -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 );