aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickwindow.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-05-11 20:25:47 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2017-05-12 08:40:08 +0000
commitee6b07b3ce8ba80632868181d45d96253acb1064 (patch)
tree637d3cb2f628591eef2ac33bce8d1cc54570a68b /src/quick/items/qquickwindow.cpp
parent59a70377683445f4355b5e3eef50869b61331cfa (diff)
Temporarily restore QQuickPointerDevice::pointerEvent() accessor
This can be reverted as soon as the relevant qtlocation change is integrated. Task-number: QTBUG-57253 Change-Id: I72b71f61ba8fe421ac57c963801176098fe9f11c Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'src/quick/items/qquickwindow.cpp')
-rw-r--r--src/quick/items/qquickwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp
index c441cfc357..816c057ab0 100644
--- a/src/quick/items/qquickwindow.cpp
+++ b/src/quick/items/qquickwindow.cpp
@@ -2117,8 +2117,10 @@ QQuickPointerEvent *QQuickWindowPrivate::pointerEventInstance(QQuickPointerDevic
{
// the list of devices should be very small so a linear search should be ok
for (QQuickPointerEvent *e: pointerEventInstances) {
- if (e->device() == device)
+ if (e->device() == device) {
+ device->m_event = e;
return e;
+ }
}
QQuickPointerEvent *ev = nullptr;
@@ -2136,6 +2138,7 @@ QQuickPointerEvent *QQuickWindowPrivate::pointerEventInstance(QQuickPointerDevic
break;
}
pointerEventInstances << ev;
+ device->m_event = ev;
return ev;
}