| 180 | } |
| 181 | |
| 182 | void 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 | |
| 203 | void DrawPointTool::dragFinish() |
| 204 | { |
nothing calls this directly
no test coverage detected