| 316 | } |
| 317 | |
| 318 | void 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 | |
| 339 | void ClientToolManager::toolGotSelected(const QString &toolId) |
| 340 | { |
nothing calls this directly
no test coverage detected