| 352 | } |
| 353 | |
| 354 | void EditPointTool::dragMove() |
| 355 | { |
| 356 | if (editingInProgress()) |
| 357 | { |
| 358 | if (snapped_to_pos && handle_offset != MapCoordF(0, 0)) |
| 359 | { |
| 360 | // Snapped to a position. Correct the handle offset, so the |
| 361 | // object moves to this position exactly. |
| 362 | click_pos_map += handle_offset; |
| 363 | object_mover->setStartPos(click_pos_map); |
| 364 | handle_offset = MapCoordF(0, 0); |
| 365 | } |
| 366 | |
| 367 | object_mover->move(constrained_pos_map, |
| 368 | moveOppositeHandle() ? ObjectMover::HandleOpMode::Click : ObjectMover::HandleOpMode::Never); |
| 369 | updatePreviewObjectsAsynchronously(); |
| 370 | } |
| 371 | else if (box_selection) |
| 372 | { |
| 373 | updateDirtyRect(); |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | void EditPointTool::dragFinish() |
| 378 | { |
nothing calls this directly
no test coverage detected