| 166 | } |
| 167 | |
| 168 | void testToolEnabled() |
| 169 | { |
| 170 | QSignalSpy toolEnabledSpy(ClientToolManager::instance(), &ClientToolManager::toolEnabled); |
| 171 | // Create QAction to enable action inspector |
| 172 | QAction action("Test Action", this); |
| 173 | toolEnabledSpy.wait(50); |
| 174 | QVERIFY(!toolEnabledSpy.isEmpty()); |
| 175 | QStringList enabledTools; |
| 176 | for (auto i = toolEnabledSpy.constBegin(); i != toolEnabledSpy.constEnd(); ++i) |
| 177 | enabledTools << i->first().toString(); |
| 178 | QVERIFY(enabledTools.contains("gammaray_actioninspector")); |
| 179 | |
| 180 | QVERIFY(ClientToolManager::instance()->widgetForId("gammaray_actioninspector")); |
| 181 | } |
| 182 | |
| 183 | void testToolSelected() |
| 184 | { |
nothing calls this directly
no test coverage detected