diff options
author | Christian Stenger <christian.stenger@digia.com> | 2014-11-04 14:16:22 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2014-12-04 13:52:15 +0100 |
commit | 8bb03409353be640a18b58dd80e1bb67f96f13fe (patch) | |
tree | 5252f728d987c743747783c82a8d1d4a0464931a /plugins/autotest/testresultmodel.cpp | |
parent | 87e5cf87e1dce9d46a6ffd9906f6be47f6941fbd (diff) | |
download | qt-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.cpp | 2 |
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 |