mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
Added access function to get QTreeView from tree view editor
p4#: 22347
This commit is contained in:
1 parent
e6386255e6
commit
bc56e97eb7
4 files changed
+49
-2
No files matched your search
@@ -81,6 +81,11 @@ QWidget* PdmUiTreeViewEditor::createWidget(QWidget* parent)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmUiTreeViewEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
{
|
||||
if (this->pdmObject())
|
||||
{
|
||||
this->pdmObject()->objectEditorAttribute(uiConfigName, &m_editorAttributes);
|
||||
}
|
||||
|
||||
if (!m_treeModelPdm->treeItemRoot() || m_treeModelPdm->treeItemRoot()->dataObject() != this->pdmObject())
|
||||
{
|
||||
caf::PdmUiTreeItem* treeItemRoot = caf::UiTreeItemBuilderPdm::buildViewItems(NULL, -1, this->pdmObject());
|
||||
@@ -102,6 +107,10 @@ void PdmUiTreeViewEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
PdmUiTreeViewEditorAttribute leab;
|
||||
|
||||
|
||||
// Notify all connected views that the complete model is updated
|
||||
m_treeModelPdm->notifyModelChanged();
|
||||
}
|
||||
@@ -142,6 +151,14 @@ void PdmUiTreeViewEditor::childObjects(PdmObject* pdmObject, std::vector<PdmObje
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QTreeView* PdmUiTreeViewEditor::treeView()
|
||||
{
|
||||
return m_treeView;
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // end namespace caf
|
||||
Reference in new issue
Block a user