mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#11094 Make sure no window is maximized before tiling
This commit is contained in:
1 parent
d10254933c
commit
2e7afeb58b
1 file changed
+6
@@ -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