mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11094 Make sure no window is maximized before tiling
This commit is contained in:
@@ -112,6 +112,9 @@ std::list<QMdiSubWindow*> RiuMdiArea::subWindowListSortedByVerticalPosition()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMdiArea::tileWindowsHorizontally()
|
||||
{
|
||||
// Make sure that all windows are windowed and not maximized
|
||||
tileSubWindows();
|
||||
|
||||
QPoint position( 0, 0 );
|
||||
|
||||
for ( auto* window : subWindowListSortedByPosition() )
|
||||
@@ -129,6 +132,9 @@ void RiuMdiArea::tileWindowsHorizontally()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMdiArea::tileWindowsVertically()
|
||||
{
|
||||
// Make sure that all windows are windowed and not maximized
|
||||
tileSubWindows();
|
||||
|
||||
auto windowList = subWindowListSortedByVerticalPosition();
|
||||
|
||||
QPoint position( 0, 0 );
|
||||
|
||||
Reference in New Issue
Block a user