MCPcopy Create free account
hub / github.com/KDAB/GammaRay / testToolEnabled

Method testToolEnabled

tests/toolmanagertest.cpp:168–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

widgetForIdMethod · 0.80
isEmptyMethod · 0.45
constBeginMethod · 0.45
constEndMethod · 0.45

Tested by

no test coverage detected