Changeset View
Changeset View
Standalone View
Standalone View
plugins/testview/testview.cpp
Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Line(s) | 198 | { | |||
---|---|---|---|---|---|
212 | case TestResult::Failed: | 212 | case TestResult::Failed: | ||
213 | return QIcon::fromTheme(QStringLiteral("edit-delete")); | 213 | return QIcon::fromTheme(QStringLiteral("edit-delete")); | ||
214 | 214 | | |||
215 | case TestResult::ExpectedFail: | 215 | case TestResult::ExpectedFail: | ||
216 | return QIcon::fromTheme(QStringLiteral("dialog-ok")); | 216 | return QIcon::fromTheme(QStringLiteral("dialog-ok")); | ||
217 | 217 | | |||
218 | case TestResult::Error: | 218 | case TestResult::Error: | ||
219 | return QIcon::fromTheme(QStringLiteral("dialog-cancel")); | 219 | return QIcon::fromTheme(QStringLiteral("dialog-cancel")); | ||
220 | | ||||
221 | default: | | |||
222 | return QIcon::fromTheme(QLatin1String("")); | | |||
223 | } | 220 | } | ||
221 | Q_UNREACHABLE(); | ||||
224 | } | 222 | } | ||
225 | 223 | | |||
226 | QStandardItem* TestView::itemForSuite(ITestSuite* suite) | 224 | QStandardItem* TestView::itemForSuite(ITestSuite* suite) | ||
227 | { | 225 | { | ||
228 | foreach (QStandardItem* item, m_model->findItems(suite->name(), Qt::MatchRecursive)) | 226 | foreach (QStandardItem* item, m_model->findItems(suite->name(), Qt::MatchRecursive)) | ||
229 | { | 227 | { | ||
230 | if (item->parent() && item->parent()->text() == suite->project()->name() | 228 | if (item->parent() && item->parent()->text() == suite->project()->name() | ||
231 | && !item->parent()->parent()) | 229 | && !item->parent()->parent()) | ||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |