mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 08:38:00 -06:00
Active view tracking for 3d window
This commit is contained in:
1 parent
ad73f8d26c
commit
7fd55a0b91
14 files changed
+145
-32
No files matched your search
@@ -1144,15 +1144,9 @@ RimViewWindow* RiaGuiApplication::activeViewWindow()
|
||||
{
|
||||
viewWindow = RiaGuiApplication::instance()->activeReservoirView();
|
||||
}
|
||||
else if ( dynamic_cast<RiuPlotMainWindow*>( mainWindowWidget ) )
|
||||
else if ( auto mainPlotWindow = dynamic_cast<RiuPlotMainWindow*>( mainWindowWidget ) )
|
||||
{
|
||||
RiuPlotMainWindow* mainPlotWindow = dynamic_cast<RiuPlotMainWindow*>( mainWindowWidget );
|
||||
|
||||
// QList<QMdiSubWindow*> subwindows = mainPlotWindow->subWindowList( QMdiArea::StackingOrder );
|
||||
// if ( !subwindows.empty() )
|
||||
//{
|
||||
// viewWindow = RiuInterfaceToViewWindow::viewWindowFromWidget( subwindows.back()->widget() );
|
||||
// }
|
||||
viewWindow = mainPlotWindow->activePlotView();
|
||||
}
|
||||
|
||||
return viewWindow;
|
||||
|
||||
Reference in new issue
Block a user