| 279 | } |
| 280 | |
| 281 | void TestAreaOperation::mainWindowConstruction() |
| 282 | { |
| 283 | //====== check for m_area1 ====== |
| 284 | MainWindow mw1(m_controller); |
| 285 | m_controller->showArea(m_area1, &mw1); |
| 286 | QCOMPARE_EQ(mw1.area(), m_area1); |
| 287 | checkArea1(&mw1); |
| 288 | |
| 289 | ///////////// |
| 290 | //====== check for m_area2 ====== |
| 291 | MainWindow mw2(m_controller); |
| 292 | m_controller->showArea(m_area2, &mw2); |
| 293 | QCOMPARE_EQ(mw2.area(), m_area2); |
| 294 | checkArea2(&mw2); |
| 295 | |
| 296 | compareAreas1and2(m_area1, m_area2, MainWindowAffinity::DifferentWindows); |
| 297 | } |
| 298 | |
| 299 | static QWidget* checkAreaCommon(MainWindow* mw) |
| 300 | { |
nothing calls this directly
no test coverage detected