diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2014-12-01 16:12:05 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2014-12-04 13:52:16 +0100 |
commit | 32a6849fae4cfa35a8c5f395701cdbb15c31ef03 (patch) | |
tree | 52e436c83ab18ef869f25a103e3c625c01e2e6af /plugins/autotest/testresultmodel.cpp | |
parent | d2784769567a96221ac036e90b1f3f207257cf27 (diff) | |
download | qt-creator-32a6849fae4cfa35a8c5f395701cdbb15c31ef03.tar.gz |
Add support for minimal benchmarks
Diffstat (limited to 'plugins/autotest/testresultmodel.cpp')
-rw-r--r-- | plugins/autotest/testresultmodel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/autotest/testresultmodel.cpp b/plugins/autotest/testresultmodel.cpp index ab303364c4..8a5e8aca64 100644 --- a/plugins/autotest/testresultmodel.cpp +++ b/plugins/autotest/testresultmodel.cpp @@ -64,7 +64,7 @@ int TestResultModel::columnCount(const QModelIndex &parent) const } static QIcon testResultIcon(ResultType result) { - static QIcon icons[10] = { + static QIcon icons[11] = { QIcon(QLatin1String(":/images/pass.png")), QIcon(QLatin1String(":/images/fail.png")), QIcon(QLatin1String(":/images/xfail.png")), @@ -72,6 +72,7 @@ static QIcon testResultIcon(ResultType result) { QIcon(QLatin1String(":/images/skip.png")), QIcon(QLatin1String(":/images/blacklisted_pass.png")), QIcon(QLatin1String(":/images/blacklisted_fail.png")), + QIcon(QLatin1String(":/images/benchmark.png")), QIcon(QLatin1String(":/images/debug.png")), QIcon(QLatin1String(":/images/warn.png")), QIcon(QLatin1String(":/images/fatal.png")), @@ -97,6 +98,7 @@ QVariant TestResultModel::data(const QModelIndex &index, int role) const case ResultType::SKIP: case ResultType::BLACKLISTED_PASS: case ResultType::BLACKLISTED_FAIL: + case ResultType::BENCHMARK: return QString::fromLatin1("%1::%2 (%3) - %4").arg(tr.className(), tr.testCase(), tr.dataTag(), tr.fileName()); default: @@ -209,7 +211,7 @@ void TestResultFilterModel::enableAllResultTypes() << ResultType::UNEXPECTED_PASS << ResultType::SKIP << ResultType::MESSAGE_DEBUG << ResultType::MESSAGE_WARN << ResultType::MESSAGE_INTERNAL << ResultType::MESSAGE_FATAL << ResultType::UNKNOWN << ResultType::BLACKLISTED_PASS - << ResultType::BLACKLISTED_FAIL; + << ResultType::BLACKLISTED_FAIL << ResultType::BENCHMARK; invalidateFilter(); } |