From 82615242089a867717a3622c9acd1f138bcaa4f3 Mon Sep 17 00:00:00 2001 From: Beat Hangartner Date: Sat, 10 Oct 2026 10:54:42 +0200 Subject: [PATCH] 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 --- sources/qetgraphicsitem/diagramimageitem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/qetgraphicsitem/diagramimageitem.h b/sources/qetgraphicsitem/diagramimageitem.h index a5fb12aa6..6e0f308f8 100644 --- a/sources/qetgraphicsitem/diagramimageitem.h +++ b/sources/qetgraphicsitem/diagramimageitem.h @@ -275,7 +275,7 @@ class DiagramImageItem : public QetGraphicsItem { QVector 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