From af3caa2271f47ddf48da46a0cc5932aaa442eb39 Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Thu, 30 Apr 2020 15:15:12 +0300 Subject: QBasicDrag: Send QDragMoveEvent when modifiers change ... without moving the mouse. This allows to update drop action and cursor. Task-number: QTBUG-56218 Task-number: QTBUG-82934 Pick-to: 5.15 Change-Id: I8b0ac2a008a9dbcc4c2d6abce282e6f169c2f542 Reviewed-by: Shawn Rutledge --- src/gui/kernel/qsimpledrag_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/kernel/qsimpledrag_p.h') diff --git a/src/gui/kernel/qsimpledrag_p.h b/src/gui/kernel/qsimpledrag_p.h index 8638b05155..4409deb1da 100644 --- a/src/gui/kernel/qsimpledrag_p.h +++ b/src/gui/kernel/qsimpledrag_p.h @@ -126,6 +126,7 @@ private: QShapedPixmapWindow *m_drag_icon_window = nullptr; bool m_useCompositing = true; QScreen *m_screen = nullptr; + QPoint m_lastPos; }; class Q_GUI_EXPORT QSimpleDrag : public QBasicDrag -- cgit v1.2.3