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

Method toolGotEnabled

ui/clienttoolmanager.cpp:318–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void ClientToolManager::toolGotEnabled(const QString &toolId)
319{
320 int i = 0;
321 auto it = m_tools.begin();
322 for (; it != m_tools.end(); i++, it++) {
323 if (it->id() == toolId) {
324 it->setEnabled(true);
325
326 ToolUiFactory *factory = s_pluginRepository()->factories.value(it->id());
327 if (factory && (factory->remotingSupported() || !Endpoint::instance()->isRemoteClient())
328 && s_pluginRepository()->uninitializedTools.contains(factory)) {
329 factory->initUi();
330 s_pluginRepository()->uninitializedTools.remove(factory);
331 }
332
333 emit toolEnabled(toolId);
334 emit toolEnabledByIndex(i);
335 }
336 }
337}
338
339void ClientToolManager::toolGotSelected(const QString &toolId)
340{

Callers

nothing calls this directly

Calls 9

endMethod · 0.80
beginMethod · 0.45
idMethod · 0.45
setEnabledMethod · 0.45
valueMethod · 0.45
remotingSupportedMethod · 0.45
isRemoteClientMethod · 0.45
initUiMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected