trashed it.
This commit is contained in:
@@ -123,8 +123,8 @@ void XQMainWindow::initMainWindow()
|
||||
_mainModelView.initModel( c_MainModelName );
|
||||
|
||||
// #2. load demo data
|
||||
loadDocument( c_DocumentFileName1 );
|
||||
loadDocument( c_DocumentFileName2 );
|
||||
//loadDocument( c_DocumentFileName1 );
|
||||
//loadDocument( c_DocumentFileName2 );
|
||||
|
||||
qDebug() << " --- all here: " << XQNode::s_Count;
|
||||
|
||||
@@ -261,6 +261,10 @@ void XQMainWindow::onTreeItemClicked(const QModelIndex& index )
|
||||
_mainTreeView->selectionModel()->select(index, QItemSelectionModel::Select);
|
||||
//entry.setBackground( QBrush( Qt::green ) );
|
||||
|
||||
QVariant variant = entry.QStandardItem::data( XQItem::ContentNodeRole );
|
||||
|
||||
XQNodePtr ptr = variant.value<XQNodePtr>();
|
||||
|
||||
QString key = entry.attribute(c_ProjectID);
|
||||
qDebug() << " --- FIRZ: key: " << key;
|
||||
|
||||
|
Reference in New Issue
Block a user