aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents_p_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-04-20 11:55:08 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-04-20 18:38:53 +0000
commite58241c5d4630b4cb00cb28d7cf6bb31b861ec6b (patch)
treedda7168d4174e2a843254665df9ff59cb72ec442 /src/quick/items/qquickevents_p_p.h
parent083160b082a9e622c5266803ab8adb19028c31b6 (diff)
QQuickPointerTouchEvent::reset(): preserve reordered touchpoints better
It's not just the grabbers we have to worry about. If touchpoints in one event are in a different order than in the previous one, we need to also preserve anything that was remembered from when that touchpoint was pressed: that is pressTimestamp, scenePressPos, and maybe sceneGrabPos. So now we use a vector of structs for that purpose, which is more extensible and easier to read. Change-Id: Ibf2c0079693ed10988f0066184d53ee9106f2eca Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r--src/quick/items/qquickevents_p_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h
index 2eebf131bc..72d5be54c9 100644
--- a/src/quick/items/qquickevents_p_p.h
+++ b/src/quick/items/qquickevents_p_p.h
@@ -341,6 +341,7 @@ protected:
bool m_grabberIsHandler : 1;
int m_reserved : 29;
+ friend class QQuickPointerTouchEvent;
friend class QQuickWindowPrivate;
Q_DISABLE_COPY(QQuickEventPoint)