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

Method dragMove

src/tools/draw_point_tool.cpp:182–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void DrawPointTool::dragMove()
183{
184 if (preview_object->getSymbol()->isRotatable())
185 {
186 bool enable_angle_helper = active_modifiers & Qt::ControlModifier;
187 if (angle_helper->isActive() != enable_angle_helper)
188 {
189 angle_helper->setActive(enable_angle_helper, preview_object->getCoordF());
190 updateConstrainedPositions();
191 }
192
193 renderables->removeRenderablesOfObject(preview_object.get(), false);
194 preview_object->setRotation(calculateRotation(constrained_pos, constrained_pos_map));
195 preview_object->update();
196 renderables->insertRenderablesOfObject(preview_object.get());
197 updateDirtyRect();
198
199 updateStatusText();
200 }
201}
202
203void DrawPointTool::dragFinish()
204{

Callers

nothing calls this directly

Calls 10

isRotatableMethod · 0.80
getCoordFMethod · 0.80
getSymbolMethod · 0.45
isActiveMethod · 0.45
setActiveMethod · 0.45
getMethod · 0.45
setRotationMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected