diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2014-12-04 14:05:19 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2014-12-09 10:22:48 +0200 |
commit | e71a2c44fc64b3e3ced132731bf57fc6809516e1 (patch) | |
tree | 9eda69e11b1ab5a8cb9951f12b24bf5e11b158a8 /plugins/autotest/testresultspane.cpp | |
parent | edfd394bf54bc78f2a85104da2f49484a61d1134 (diff) | |
download | qt-creator-e71a2c44fc64b3e3ced132731bf57fc6809516e1.tar.gz |
Provide test settings and make use of them
Change-Id: Ia6fef10bc577f9722b6c063c2df4d1651a8be50d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'plugins/autotest/testresultspane.cpp')
-rw-r--r-- | plugins/autotest/testresultspane.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/autotest/testresultspane.cpp b/plugins/autotest/testresultspane.cpp index 998e80f57f..cb28412a4c 100644 --- a/plugins/autotest/testresultspane.cpp +++ b/plugins/autotest/testresultspane.cpp @@ -16,10 +16,12 @@ ** ****************************************************************************/ +#include "autotestplugin.h" #include "testresultspane.h" #include "testresultmodel.h" #include "testresultdelegate.h" #include "testrunner.h" +#include "testsettings.h" #include "testtreemodel.h" #include <coreplugin/coreconstants.h> @@ -271,6 +273,11 @@ void TestResultsPane::onRunSelectedTriggered() void TestResultsPane::initializeFilterMenu() { + const bool omitIntern = AutotestPlugin::instance()->settings()->omitInternalMssg; + // FilterModel has all messages enabled by default + if (omitIntern) + m_filterModel->toggleTestResultType(ResultType::MESSAGE_INTERNAL); + QMap<ResultType, QString> textAndType; textAndType.insert(ResultType::PASS, tr("Pass")); textAndType.insert(ResultType::FAIL, tr("Fail")); @@ -285,7 +292,7 @@ void TestResultsPane::initializeFilterMenu() QAction *action = new QAction(m_filterMenu); action->setText(textAndType.value(result)); action->setCheckable(true); - action->setChecked(true); + action->setChecked(result != ResultType::MESSAGE_INTERNAL || !omitIntern); action->setData(result); m_filterMenu->addAction(action); } |