diff options
author | Christian Stenger <christian.stenger@qt.io> | 2017-09-05 13:57:22 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2017-09-18 10:01:18 +0000 |
commit | 8288eadac6b1c3bc8a1965f8da749af67e646785 (patch) | |
tree | 46d1aa09626a1df872f8c67f5073cda1e60ec6b5 /src/plugins/autotest/autotestplugin.cpp | |
parent | f885785564f16c58f04e7644cf29a59675d7ca29 (diff) |
AutoTest: Unify handling of run modes
Move used enums more central to avoid duplicating
information and unify their usages.
Change-Id: I33e9bdc11f7da16ecabf03991b5a5f550a53bdad
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/autotest/autotestplugin.cpp')
-rw-r--r-- | src/plugins/autotest/autotestplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp index 461d204b8c..316667ddf3 100644 --- a/src/plugins/autotest/autotestplugin.cpp +++ b/src/plugins/autotest/autotestplugin.cpp @@ -170,7 +170,7 @@ void AutotestPlugin::onRunAllTriggered() TestRunner *runner = TestRunner::instance(); TestTreeModel *model = TestTreeModel::instance(); runner->setSelectedTests(model->getAllTestCases()); - runner->prepareToRunTests(TestRunner::Run); + runner->prepareToRunTests(TestRunMode::Run); } void AutotestPlugin::onRunSelectedTriggered() @@ -178,7 +178,7 @@ void AutotestPlugin::onRunSelectedTriggered() TestRunner *runner = TestRunner::instance(); TestTreeModel *model = TestTreeModel::instance(); runner->setSelectedTests(model->getSelectedTests()); - runner->prepareToRunTests(TestRunner::Run); + runner->prepareToRunTests(TestRunMode::Run); } void AutotestPlugin::updateMenuItemsEnabledState() |