mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added special handling to expand an item in tree view
This commit is contained in:
@@ -2010,3 +2010,15 @@ void RiuMainWindow::appendActionsContextMenuForPdmObject(caf::PdmObject* pdmObje
|
||||
menu->addAction(m_openMultipleEclipseCasesAction);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::setExpanded(const caf::PdmObject* pdmObject, bool expanded)
|
||||
{
|
||||
QModelIndex mi = m_treeModelPdm->getModelIndexFromPdmObject(pdmObject);
|
||||
if (m_treeView && mi.isValid())
|
||||
{
|
||||
m_treeView->setExpanded(mi, expanded);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user