#2831 StatusBar : Hide statusBar during regression test execution

This commit is contained in:
Magne Sjaastad 2018-04-27 12:40:46 +02:00
parent f1fbe4d8ac
commit 23c439fe6b
3 changed files with 6 additions and 4 deletions

View File

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

View File

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

View File

@ -176,14 +176,14 @@ void RiuMainWindow::initializeGuiNewProjectLoaded()
m_processMonitor->slotClearTextEdit();
if (statusBar())
if (statusBar() && !RiaRegressionTestRunner::instance()->isRunningRegressionTests())
{
statusBar()->showMessage("Ready ...");
}
}
//--------------------------------------------------------------------------------------------------
///
///
//--------------------------------------------------------------------------------------------------
void RiuMainWindow::cleanupGuiCaseClose()
{