mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added creation of IJK-slices from context menu in 3D scene.
p4#: 21367
This commit is contained in:
@@ -1441,3 +1441,19 @@ void RiuMainWindow::restoreTreeViewState()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::setCurrentObjectInTreeView(caf::PdmObject* object)
|
||||
{
|
||||
if (m_treeView && m_treeModelPdm)
|
||||
{
|
||||
QModelIndex mi = m_treeModelPdm->getModelIndexFromPdmObject(object);
|
||||
|
||||
if (mi.isValid())
|
||||
{
|
||||
m_treeView->setCurrentIndex(mi);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user