re-merge.

This commit is contained in:
Christoph Holzheuer
2025-09-11 17:45:44 +02:00
parent fd41138175
commit d5c1f8925c
7 changed files with 88 additions and 147 deletions

View File

@@ -101,19 +101,6 @@ void XQMainWindow::initMainWindow()
onTreeViewItemClicked( XQItem::xqItemFromIndex(index) );
});
/*
connect( &_mainModel, &XQViewModel::itemCreated, this, [=, this](XQItem* item)
{
// when a new main tree item has been created ...
QString pID = item.contentNode()->attribute(c_ProjectID);
_mainTreeView->setCurrentIndex( item.index() );
// ... we set the current view to this node
if( _documentStore.contains( pID ) )
_tabWidget->setCurrentWidget( _documentStore[pID].viewModel->treeTable() );
} );
*/
try
{
// hand over undostack
@@ -125,7 +112,7 @@ void XQMainWindow::initMainWindow()
// #2. load demo data
loadDocument( c_DocumentFileName1 );
//loadDocumentQML( c_DocumentFileName2 );
loadDocumentQML( c_DocumentFileName2 );
//loadDocument( c_DocumentFileName2 );
//loadDocument( c_DocumentFileName3 );