| 936 | } |
| 937 | |
| 938 | bool updateTool(QDomElement newToolElement, int toolId) |
| 939 | { |
| 940 | QDomElement toolElement = tool(toolId); |
| 941 | if (toolElement.isNull()) { |
| 942 | return false; |
| 943 | } |
| 944 | newToolElement = newToolElement.cloneNode().toElement(); |
| 945 | newToolElement.setAttribute(QStringLiteral("id"), toolId); |
| 946 | QDomNode oldTool = m_toolsDefinition.documentElement().replaceChild(newToolElement, toolElement); |
| 947 | return !oldTool.isNull(); |
| 948 | } |
| 949 | |
| 950 | int findToolId(const QString &type) |
| 951 | { |
no test coverage detected