aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-10-17 08:20:58 +0300
committerQt by Nokia <qt-info@nokia.com>2011-10-18 09:17:26 +0200
commitf018af7e249359209bcc9321966d181539ddc1ba (patch)
tree99abb4c46d4b142d7c8932e00f2d08d47c2693cc /src
parent6a1db458c277c00059dc763c17398798c30240be (diff)
Deliver touch event timestamps in QSGCanvas.
The timestamp in input events is new in Qt5. When making copies of a touch event this field must be copied too otherwise the event received by the items will contain a default timestamp of 0. Change-Id: I87dd337c964f34a6da6db808d83b7311df64fcd5 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/items/qsgcanvas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp
index 879beb9310..1e3562775f 100644
--- a/src/declarative/items/qsgcanvas.cpp
+++ b/src/declarative/items/qsgcanvas.cpp
@@ -1348,6 +1348,7 @@ bool QSGCanvasPrivate::deliverTouchPoints(QSGItem *item, QTouchEvent *event, con
touchEvent.setModifiers(event->modifiers());
touchEvent.setTouchPointStates(eventStates);
touchEvent.setTouchPoints(eventPoints);
+ touchEvent.setTimestamp(event->timestamp());
touchEvent.accept();
q->sendEvent(item, &touchEvent);