MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / deactivate

Method deactivate

src/tools/tool.cpp:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void MapEditorTool::deactivate()
88{
89 if (editor->getTool() == this)
90 {
91 if (toolType() == MapEditorTool::EditPoint)
92 editor->setTool(nullptr);
93 else
94 editor->setEditTool();
95 }
96 deleteLater();
97}
98
99void MapEditorTool::switchToDefaultDrawTool(const Symbol* symbol) const
100{

Callers 1

finishPaintingMethod · 0.80

Calls 3

getToolMethod · 0.80
setEditToolMethod · 0.80
setToolMethod · 0.45

Tested by

no test coverage detected