From 62719a97cf4640ff014d9ca0691cc1e7632ef173 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 8 Jul 2016 14:46:08 +0200 Subject: PointerEvents: start unified delivery code path This really does nothing but join all incoming events, package them into pointer events and then unpack them to send them on their separate ways again. Change-Id: Iad87b86051963c064d7a41d9a64b4551efe1f039 Reviewed-by: Shawn Rutledge --- src/quick/items/qquickwindow_p.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/quick/items/qquickwindow_p.h') diff --git a/src/quick/items/qquickwindow_p.h b/src/quick/items/qquickwindow_p.h index e06fe4472d..713f33cc8f 100644 --- a/src/quick/items/qquickwindow_p.h +++ b/src/quick/items/qquickwindow_p.h @@ -53,6 +53,7 @@ #include "qquickitem.h" #include "qquickwindow.h" +#include "qquickevents_p_p.h" #include @@ -161,6 +162,7 @@ public: QHash > *, QSet *filtered); void handleTouchEvent(QTouchEvent *); void handleMouseEvent(QMouseEvent *); + void deliverPointerEvent(QQuickPointerEvent *); void deliverTouchEvent(QTouchEvent *); bool compressTouchEvent(QTouchEvent *); bool deliverTouchCancelEvent(QTouchEvent *); @@ -238,6 +240,10 @@ public: QQuickRenderControl *renderControl; QQuickAnimatorController *animationController; QScopedPointer delayedTouch; + + // The current touch or mouse event that is delivered. + // This event gets re-used (reset) for every incoming mouse/touch event. + QQuickPointerEvent currentPointerEvent; int touchRecursionGuard; QQuickCustomRenderStage *customRenderStage; -- cgit v1.2.3