mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
Remove last traces of MDI
This commit is contained in:
1 parent
967975828c
commit
a1fe3739d1
27 files changed
+27
-251
No files matched your search
@@ -76,7 +76,6 @@
|
||||
|
||||
#include <QCloseEvent>
|
||||
#include <QLayout>
|
||||
#include <QMdiSubWindow>
|
||||
#include <QMenuBar>
|
||||
#include <QMessageBox>
|
||||
#include <QSettings>
|
||||
@@ -236,7 +235,10 @@ void RiuPlotMainWindow::initializeGuiNewProjectLoaded()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuPlotMainWindow::cleanupGuiBeforeProjectClose()
|
||||
{
|
||||
// m_mdiArea->closeAllSubWindows();
|
||||
for ( auto v : viewWindows() )
|
||||
{
|
||||
v->removeWindowFromDock();
|
||||
}
|
||||
|
||||
setPdmRoot( nullptr );
|
||||
|
||||
@@ -807,52 +809,6 @@ void RiuPlotMainWindow::setPdmRoot( caf::PdmObject* pdmRoot )
|
||||
}
|
||||
}
|
||||
|
||||
////--------------------------------------------------------------------------------------------------
|
||||
/////
|
||||
////--------------------------------------------------------------------------------------------------
|
||||
// void RiuPlotMainWindow::slotSubWindowActivated( QMdiSubWindow* subWindow )
|
||||
//{
|
||||
// if ( isBlockingSubWindowActivatedSignal() ) return;
|
||||
//
|
||||
// RimViewWindow* activatedView = findViewWindowFromSubWindow( subWindow );
|
||||
//
|
||||
// if ( !activatedView ) return;
|
||||
// m_activePlotViewWindow = activatedView;
|
||||
//
|
||||
// if ( !isBlockingViewSelectionOnSubWindowActivated() )
|
||||
// {
|
||||
// caf::PdmUiTreeView* projectTree = getTreeViewWithItem( activatedView );
|
||||
// if ( projectTree )
|
||||
// {
|
||||
// std::vector<caf::PdmUiItem*> currentSelection;
|
||||
// projectTree->selectedUiItems( currentSelection );
|
||||
// bool childSelected = false;
|
||||
// for ( caf::PdmUiItem* uiItem : currentSelection )
|
||||
// {
|
||||
// caf::PdmObject* pdmObject = dynamic_cast<caf::PdmObject*>( uiItem );
|
||||
// if ( pdmObject )
|
||||
// {
|
||||
// std::vector<RimViewWindow*> ancestralViews = pdmObject->allAncestorsOrThisOfType<RimViewWindow>();
|
||||
// for ( auto ancestralView : ancestralViews )
|
||||
// {
|
||||
// if ( ancestralView == activatedView )
|
||||
// {
|
||||
// childSelected = true;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// if ( !childSelected )
|
||||
// {
|
||||
// selectAsCurrentItem( activatedView );
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// updateWellLogPlotToolBar();
|
||||
// updateMultiPlotToolBar();
|
||||
// }
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user