Put the Escape comment back on m_drag_cancelled

The comment "Escape pressed: ignore the rest of this mouse gesture"
explains m_drag_cancelled. The crop commit moved it onto the
declaration of dragCropHandle(), added below it. No code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Beat Hangartner
2026-10-10 10:54:42 +02:00
parent d996426e8a
commit 8261524208
+2 -2
View File
@@ -275,7 +275,7 @@ class DiagramImageItem : public QetGraphicsItem {
QVector<HandleRole> m_handleRoles;
int m_vector_index = -1;
QPointF m_original_pos; // scene position at the start of a resize/rotate/pivot drag, for Escape-to-cancel
bool m_drag_cancelled = false;
bool m_drag_cancelled = false; // Escape pressed: ignore the rest of this mouse gesture
// Crop mode: the crop being edited, in the original's pixels; the
// whole original, colour-keyed, shown dimmed around it; and the
// state of a drag that moves the crop window.
@@ -285,7 +285,7 @@ class DiagramImageItem : public QetGraphicsItem {
QPointF m_crop_move_start;
QRectF m_crop_move_origin;
QRectF cropFrameLocal() const;
void dragCropHandle(int index, const QPointF &scenePos); // Escape pressed: ignore the rest of this mouse gesture
void dragCropHandle(int index, const QPointF &scenePos);
ShapeTransform m_original_transform;
bool m_original_pivotIsCustom = false;
bool m_deferHandleReposition = false; // see setPivot()'s comment