#4790 Make sure window maximation state is restored after project load + tiling fixes

This commit is contained in:
Gaute Lindkvist
2019-09-27 15:29:14 +02:00
parent 856596c366
commit 7625da7a21
10 changed files with 177 additions and 129 deletions

View File

@@ -58,7 +58,7 @@ void RiuMdiArea::resizeEvent( QResizeEvent* resizeEvent )
}
RiuMainWindowBase* mainWindow = dynamic_cast<RiuMainWindowBase*>( window() );
mainWindow->setBlockSlotSubWindowActivated( true );
mainWindow->setBlockSubWindowActivation( true );
// Workaround for Qt bug #51761: https://bugreports.qt.io/browse/QTBUG-51761
// Set the first window to be the active window then perform resize event and set back.
@@ -70,7 +70,7 @@ void RiuMdiArea::resizeEvent( QResizeEvent* resizeEvent )
setActiveSubWindow( a );
mainWindow->setBlockSlotSubWindowActivated( false );
mainWindow->setBlockSubWindowActivation( false );
for ( auto subWindow : subWindowList() )
{