#2577 Test : Add test toolbar to launch unit tests and regression tests

This commit is contained in:
Magne Sjaastad
2018-03-06 13:18:39 +01:00
parent ec96edf266
commit 2435e92be1
6 changed files with 110 additions and 0 deletions

View File

@@ -536,6 +536,15 @@ void RiuMainWindow::createToolBars()
dsToolBar->addAction(m_showWellCellsAction);
}
RiaApplication* app = RiaApplication::instance();
if (app->preferences()->showTestToolbar())
{
QToolBar* toolbar = addToolBar(tr("Test"));
toolbar->setObjectName(toolbar->windowTitle());
toolbar->addAction(cmdFeatureMgr->action("RicLaunchUnitTestsFeature"));
toolbar->addAction(cmdFeatureMgr->action("RicLaunchRegressionTestsFeature"));
}
// Create animation toolbar
m_animationToolBar = new caf::AnimationToolBar("Animation", this);
addToolBar(m_animationToolBar);