| 553 | } |
| 554 | |
| 555 | bool TestProblemModel::checkSeverityGroup(int row, const IProblem::Ptr &problem) |
| 556 | { |
| 557 | QModelIndex parent = m_model->index(row, 0); |
| 558 | MYVERIFY(parent.isValid()); |
| 559 | MYCOMPARE(m_model->data(parent).toString(), problem->severityString()); |
| 560 | |
| 561 | QModelIndex idx = m_model->index(0, 0, parent); |
| 562 | MYVERIFY(idx.isValid()); |
| 563 | MYCOMPARE(m_model->data(idx).toString(), problem->description()); |
| 564 | |
| 565 | return true; |
| 566 | } |
| 567 | |
| 568 | QTEST_MAIN(TestProblemModel) |
| 569 |
nothing calls this directly
no test coverage detected