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

Method dragFinish

src/tools/rotate_tool.cpp:106–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void RotateTool::dragFinish()
107{
108 if (qAbs(current_rotation) > 0.0001)
109 {
110 for (auto object : editedObjects())
111 object->rotateAround(rotation_center, -current_rotation);
112 }
113 original_rotation = current_rotation = 0;
114 finishEditing();
115 updateDirtyRect();
116 updateStatusText();
117}
118
119bool RotateTool::keyPress(QKeyEvent* event)
120{

Callers

nothing calls this directly

Calls 1

rotateAroundMethod · 0.80

Tested by

no test coverage detected