#5185 Regression Test : Always set regression image size on snapshot commands

This commit is contained in:
Magne Sjaastad
2019-12-05 09:25:44 +01:00
parent 6636ae7d64
commit 73869c0036
5 changed files with 31 additions and 12 deletions

View File

@@ -108,7 +108,15 @@ void RiuMainWindowTools::setWindowSizeOnWidgetsInMdiWindows( RiuMainWindowBase*
if ( !w ) continue;
w->showNormal();
}
// Process events before resize to make sure the widget is ready for resize
// If not, a maximized window with not get the prescribed window size
QApplication::processEvents();
for ( auto w : widgets )
{
if ( !w ) continue;
auto viewWindow = RiuInterfaceToViewWindow::viewWindowFromWidget( w->widget() );
if ( viewWindow && viewWindow->viewWidget() )