mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
#2831 StatusBar : Hide statusBar during regression test execution
This commit is contained in:
parent
f1fbe4d8ac
commit
23c439fe6b
@ -45,6 +45,7 @@
|
||||
#include <QDir>
|
||||
#include <QMdiSubWindow>
|
||||
#include <QSettings>
|
||||
#include <QStatusBar>
|
||||
#include <QString>
|
||||
#include <QUrl>
|
||||
|
||||
@ -494,6 +495,7 @@ void RiaRegressionTestRunner::executeRegressionTests(const QString& regressionTe
|
||||
if (mainWnd)
|
||||
{
|
||||
mainWnd->hideAllDockWindows();
|
||||
mainWnd->statusBar()->close();
|
||||
|
||||
mainWnd->setDefaultWindowSize();
|
||||
runRegressionTest(regressionTestPath, testFilter);
|
||||
|
@ -29,8 +29,6 @@ class QDir;
|
||||
class RiaRegressionTestRunner
|
||||
{
|
||||
public:
|
||||
RiaRegressionTestRunner();
|
||||
|
||||
static RiaRegressionTestRunner* instance();
|
||||
|
||||
void executeRegressionTests(const QString& regressionTestPath, const QStringList& testFilter);
|
||||
@ -41,6 +39,8 @@ public:
|
||||
static void updateRegressionTest(const QString& testRootPath);
|
||||
|
||||
private:
|
||||
RiaRegressionTestRunner();
|
||||
|
||||
void runRegressionTest(const QString& testRootPath, const QStringList& testFilter);
|
||||
|
||||
static void removeDirectoryWithContent(QDir& dirToDelete);
|
||||
|
@ -176,14 +176,14 @@ void RiuMainWindow::initializeGuiNewProjectLoaded()
|
||||
|
||||
m_processMonitor->slotClearTextEdit();
|
||||
|
||||
if (statusBar())
|
||||
if (statusBar() && !RiaRegressionTestRunner::instance()->isRunningRegressionTests())
|
||||
{
|
||||
statusBar()->showMessage("Ready ...");
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::cleanupGuiCaseClose()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user