summaryrefslogtreecommitdiff
path: root/plugins/autotest/testresultmodel.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@digia.com>2014-11-04 14:16:22 +0100
committerChristian Stenger <christian.stenger@theqtcompany.com>2014-12-04 13:52:15 +0100
commit8bb03409353be640a18b58dd80e1bb67f96f13fe (patch)
tree5252f728d987c743747783c82a8d1d4a0464931a /plugins/autotest/testresultmodel.cpp
parent87e5cf87e1dce9d46a6ffd9906f6be47f6941fbd (diff)
downloadqt-creator-8bb03409353be640a18b58dd80e1bb67f96f13fe.tar.gz
Enable filter items on availability
If there are items inside the results pane that match the filter item filtering for these kind of results will be enabled.
Diffstat (limited to 'plugins/autotest/testresultmodel.cpp')
-rw-r--r--plugins/autotest/testresultmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/autotest/testresultmodel.cpp b/plugins/autotest/testresultmodel.cpp
index 9c7291d2e1..ed03bae173 100644
--- a/plugins/autotest/testresultmodel.cpp
+++ b/plugins/autotest/testresultmodel.cpp
@@ -109,6 +109,7 @@ void TestResultModel::addTestResult(const TestResult &testResult)
beginInsertRows(QModelIndex(), m_testResults.size(), m_testResults.size());
m_testResults.append(testResult);
endInsertRows();
+ m_availableResultTypes.insert(testResult.result());
}
void TestResultModel::clearTestResults()
@@ -121,6 +122,7 @@ void TestResultModel::clearTestResults()
m_maxWidthOfFileName = 0;
m_widthOfLineNumber = 0;
endRemoveRows();
+ m_availableResultTypes.clear();
}
TestResult TestResultModel::testResult(const QModelIndex &index) const