mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Project Tree updates (#8490)
Split project tree into multiple dockable tree views for plots, keeping one for 3d views.
This commit is contained in:
@@ -44,8 +44,9 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuTreeViewEventFilter::RiuTreeViewEventFilter( QObject* parent )
|
||||
RiuTreeViewEventFilter::RiuTreeViewEventFilter( QObject* parent, caf::PdmUiTreeView* treeView )
|
||||
: QObject( parent )
|
||||
, m_projectTreeView( treeView )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -141,14 +142,7 @@ bool RiuTreeViewEventFilter::eventFilter( QObject* obj, QEvent* event )
|
||||
|
||||
// Do not toggle state if currently editing a name in the tree view
|
||||
bool toggleStateForSelection = true;
|
||||
if ( RiuMainWindow::instance()->projectTreeView() &&
|
||||
RiuMainWindow::instance()->projectTreeView()->isTreeItemEditWidgetActive() )
|
||||
{
|
||||
toggleStateForSelection = false;
|
||||
}
|
||||
else if ( RiaGuiApplication::instance()->mainPlotWindow() &&
|
||||
RiaGuiApplication::instance()->mainPlotWindow()->projectTreeView() &&
|
||||
RiaGuiApplication::instance()->mainPlotWindow()->projectTreeView()->isTreeItemEditWidgetActive() )
|
||||
if ( m_projectTreeView && m_projectTreeView->isTreeItemEditWidgetActive() )
|
||||
{
|
||||
toggleStateForSelection = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user