#11094 Make sure no window is maximized before tiling

This commit is contained in:
Magne Sjaastad
2024-01-30 09:57:51 +01:00
parent d10254933c
commit 2e7afeb58b

View File

@@ -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 );