| 82 | } |
| 83 | |
| 84 | void TestProblemModelSet::testAddModel() |
| 85 | { |
| 86 | QSignalSpy spy(m_set.data(), &ProblemModelSet::added); |
| 87 | |
| 88 | int c = 0; |
| 89 | for (int i = 0; i < testModelCount; i++) { |
| 90 | m_set->addModel(m_testData[i].id, m_testData[i].name, m_testData[i].model); |
| 91 | c++; |
| 92 | QCOMPARE(spy.count(), c); |
| 93 | QCOMPARE(m_set->models().count(), c); |
| 94 | } |
| 95 | |
| 96 | } |
| 97 | |
| 98 | void TestProblemModelSet::testFindModel() |
| 99 | { |