| 99 | } |
| 100 | |
| 101 | void ToolManager::requestAvailableTools() |
| 102 | { |
| 103 | QVector<ToolData> toolInfos; |
| 104 | toolInfos.reserve(m_tools.size()); |
| 105 | for (ToolFactory *factory : std::as_const(m_tools)) |
| 106 | toolInfos.push_back(toolInfoForFactory(factory)); |
| 107 | emit availableToolsResponse(toolInfos); |
| 108 | } |
| 109 | |
| 110 | ToolData ToolManager::toolInfoForFactory(ToolFactory *factory) const |
| 111 | { |