mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6695 MDI Window : Set contained viewer widget after MDI window is resized
This commit is contained in:
parent
ca2bb88acb
commit
e756545d28
@ -358,7 +358,6 @@ void RiuMainWindowBase::addViewerToMdiArea( QMdiArea* mdiArea,
|
||||
new RiuMdiSubWindow( nullptr, Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint | Qt::WindowMaximizeButtonHint );
|
||||
subWin->setAttribute( Qt::WA_DeleteOnClose ); // Make sure the contained widget is destroyed when the MDI window is
|
||||
// closed
|
||||
subWin->setWidget( viewer );
|
||||
|
||||
bool initialStateTiled = subWindowsAreTiled();
|
||||
bool initialStateMaximized = false;
|
||||
@ -394,6 +393,8 @@ void RiuMainWindowBase::addViewerToMdiArea( QMdiArea* mdiArea,
|
||||
tileSubWindows();
|
||||
}
|
||||
}
|
||||
|
||||
subWin->setWidget( viewer );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user