sections in treeview.
This commit is contained in:
@@ -124,7 +124,7 @@ void XQMainWindow::initMainWindow()
|
||||
|
||||
// #2. load demo data
|
||||
loadDocument( c_DocumentFileName1 );
|
||||
//loadDocument( c_DocumentFileName2 );
|
||||
loadDocument( c_DocumentFileName2 );
|
||||
|
||||
qDebug() << " --- all here: " << XQNode::s_Count;
|
||||
|
||||
@@ -259,12 +259,17 @@ void XQMainWindow::onTreeItemClicked(const QModelIndex& index )
|
||||
|
||||
qDebug() << " --- mainWindow onTreeItemClicked:" << entry.text();
|
||||
|
||||
return;
|
||||
//_mainTreeView->selectionModel()->select(index, QItemSelectionModel::Select);
|
||||
//entry->setBackground( QBrush( Qt::green ) );
|
||||
|
||||
_mainTreeView->selectionModel()->select(index, QItemSelectionModel::Select);
|
||||
entry.setBackground( QBrush( Qt::green ) );
|
||||
|
||||
QString key = entry.attribute(c_ProjectID);
|
||||
if( _documentStore.contains(key) )
|
||||
qDebug() << " --- FIRZ: key: " << key;
|
||||
|
||||
|
||||
bool isThere = _documentStore.contains(key);
|
||||
if( isThere)
|
||||
|
||||
_tabWidget->setCurrentWidget( _documentStore[key].modelView->treeTable() );
|
||||
|
||||
}
|
||||
@@ -283,14 +288,13 @@ void XQMainWindow::onSectionCreated( const XQModelSection& section )
|
||||
{
|
||||
if( _currentProjectItem )
|
||||
{
|
||||
;
|
||||
_mainModelView.addSectionItem( section, _currentProjectItem );
|
||||
}
|
||||
qDebug() << " --- XXX section created: " << section.contentType() << ":" << section.contentType();
|
||||
}
|
||||
|
||||
void XQMainWindow::onSectionToggled( const XQModelSection& section )
|
||||
{
|
||||
qDebug() << " --- XXX section toggled: " << section.contentType() << ":" << section.sheetRootNode()->to_string();
|
||||
//qDebug() << " --- XXX section toggled: " << section.contentType() << ":" << section.sheetRootNode()->to_string();
|
||||
}
|
||||
|
||||
//! liest eine XML datei namens 'fileName'
|
||||
|
Reference in New Issue
Block a user