mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added hide all dockwidgets, used before executing regression tests
p4#: 20442
This commit is contained in:
@@ -765,6 +765,12 @@ bool RIApplication::parseArguments()
|
||||
|
||||
if (isRunRegressionTest)
|
||||
{
|
||||
RIMainWindow* mainWnd = RIMainWindow::instance();
|
||||
if (mainWnd)
|
||||
{
|
||||
mainWnd->hideAllDockWindows();
|
||||
}
|
||||
|
||||
runRegressionTest(regressionTestPath);
|
||||
|
||||
return false;
|
||||
|
||||
@@ -1236,3 +1236,16 @@ void RIMainWindow::slotSnapshotAllViewsToFile()
|
||||
|
||||
app->saveSnapshotForAllViews("snapshots");
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RIMainWindow::hideAllDockWindows()
|
||||
{
|
||||
QList<QDockWidget*> dockWidgets = findChildren<QDockWidget*>();
|
||||
|
||||
for (int i = 0; i < dockWidgets.size(); i++)
|
||||
{
|
||||
dockWidgets[i]->close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,6 +78,8 @@ public:
|
||||
|
||||
RIProcessMonitor* processMonitor();
|
||||
|
||||
void hideAllDockWindows();
|
||||
|
||||
protected:
|
||||
virtual void closeEvent(QCloseEvent* event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user