diff options
Diffstat (limited to 'src/plugins/autotest/testresultspane.cpp')
-rw-r--r-- | src/plugins/autotest/testresultspane.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/autotest/testresultspane.cpp b/src/plugins/autotest/testresultspane.cpp index de3fb8ca7c1..fc7d63c066a 100644 --- a/src/plugins/autotest/testresultspane.cpp +++ b/src/plugins/autotest/testresultspane.cpp @@ -507,9 +507,10 @@ void TestResultsPane::initializeFilterMenu() textAndType.insert(ResultType::MessageDebug, tr("Debug Messages")); textAndType.insert(ResultType::MessageWarn, tr("Warning Messages")); textAndType.insert(ResultType::MessageInternal, tr("Internal Messages")); - for (ResultType result : textAndType.keys()) { + for (auto it = textAndType.cbegin(); it != textAndType.cend(); ++it) { + const ResultType &result = it.key(); QAction *action = new QAction(m_filterMenu); - action->setText(textAndType.value(result)); + action->setText(it.value()); action->setCheckable(true); action->setChecked(result != ResultType::MessageInternal || !omitIntern); action->setData(int(result)); |