| 92 | } |
| 93 | |
| 94 | void TestProblemsView::testSwitchTab() |
| 95 | { |
| 96 | QTabWidget* tab = tabWidget(); |
| 97 | QVERIFY(tab); |
| 98 | |
| 99 | // Check that the current widget's actions are in the toolbar |
| 100 | QWidget* oldWidget = tab->currentWidget(); |
| 101 | QVERIFY(oldWidget); |
| 102 | const auto oldVisibilites = visibilites(m_view->actions()); |
| 103 | |
| 104 | tab->setCurrentIndex(1); |
| 105 | |
| 106 | // Check that the new widget's actions are in the toolbar |
| 107 | QWidget* newWidget = tab->currentWidget(); |
| 108 | QVERIFY(newWidget); |
| 109 | QVERIFY(newWidget != oldWidget); |
| 110 | const auto newVisibilites = visibilites(m_view->actions()); |
| 111 | QCOMPARE(oldVisibilites, newVisibilites); |
| 112 | } |
| 113 | |
| 114 | void TestProblemsView::testRemoveModel() |
| 115 | { |
nothing calls this directly
no test coverage detected