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

Method toolIndexForToolId

ui/clienttoolmanager.cpp:345–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345int ClientToolManager::toolIndexForToolId(const QString &toolId) const
346{
347 int i = 0;
348 for (auto it = m_tools.constBegin(); it != m_tools.constEnd(); ++i, ++it) {
349 if (it->id() == toolId)
350 return i;
351 }
352 return -1;
353}
354
355ToolInfo ClientToolManager::toolForToolId(const QString &toolId) const
356{

Callers 1

selectDefaultToolMethod · 0.80

Calls 3

constBeginMethod · 0.45
constEndMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected