| 541 | } |
| 542 | |
| 543 | void EditPointTool::objectSelectionChangedImpl() |
| 544 | { |
| 545 | if (text_editor) |
| 546 | { |
| 547 | // This case can be reproduced by using "select all objects of symbol" for any symbol while editing a text. |
| 548 | // Revert selection to text object in order to be able to finish editing. Not optimal, but better than crashing. |
| 549 | map()->clearObjectSelection(false); |
| 550 | map()->addObjectToSelection(text_editor->object(), false); |
| 551 | finishEditing(); |
| 552 | map()->emitSelectionChanged(); |
| 553 | return; |
| 554 | } |
| 555 | |
| 556 | if (isDragging()) |
| 557 | { |
| 558 | cancelDragging(); |
| 559 | } |
| 560 | else |
| 561 | { |
| 562 | updateHoverState(cur_pos_map); |
| 563 | updateDirtyRect(); |
| 564 | updateStatusText(); |
| 565 | } |
| 566 | } |
| 567 | |
| 568 | int EditPointTool::updateDirtyRectImpl(QRectF& rect) |
| 569 | { |
nothing calls this directly
no test coverage detected