| 104 | } |
| 105 | |
| 106 | void 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 | |
| 119 | bool RotateTool::keyPress(QKeyEvent* event) |
| 120 | { |
nothing calls this directly
no test coverage detected