summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qdockwidget_p.h
diff options
context:
space:
mode:
authorSergio Martins <sergio.martins@kdab.com>2017-02-16 09:58:20 +0000
committerSérgio Martins <sergio.martins@kdab.com>2017-02-22 23:11:01 +0000
commit8c1f147eaf2769f84fa5ae8425394eb315949395 (patch)
tree872aaa84cd059e923c38e956c1a14adec8833847 /src/widgets/widgets/qdockwidget_p.h
parentdd4465f57cb82ad145a78da004545c986215d87c (diff)
dockwidgets: recalculate the press position if the window resizes
A window can resize while dragging, this happens on Windows when dragging across screens, to a screen with a bigger scale factor. When that occurs it might lead to the press pos being outside of the window. Change-Id: Ic61ec7088c8fa81395d43ce665952dbd2eecba39 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/widgets/qdockwidget_p.h')
-rw-r--r--src/widgets/widgets/qdockwidget_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qdockwidget_p.h b/src/widgets/widgets/qdockwidget_p.h
index 94a3ad3b34..84bf8efacf 100644
--- a/src/widgets/widgets/qdockwidget_p.h
+++ b/src/widgets/widgets/qdockwidget_p.h
@@ -118,6 +118,7 @@ public:
void startDrag(bool group = true);
void endDrag(bool abort = false);
void moveEvent(QMoveEvent *event);
+ void recalculatePressPos(QResizeEvent *event);
void unplug(const QRect &rect);
void plug(const QRect &rect);