aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickpopup_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-04-20 16:28:59 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-04-21 07:52:32 +0000
commit7f06ac49129d9048e98afb14b0ff4ebdcb821c35 (patch)
tree3a6edd982ae2cb9e644665bdaae246f8f555af7f /src/quicktemplates2/qquickpopup_p_p.h
parentc8e9b5f25fb12c3b7983658d738165181b4d6672 (diff)
Prepare QQuickPopup for touch event handling
Add acceptTouch() and handlePress/Move/Release/Ungrab() to QQuickPopupPrivate, similarly to the recent changes to QQuickControl. Task-number: QTBUG-58389 Change-Id: I45bc0c51f7db79d0d3291f4beee6dab45b158e8a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickpopup_p_p.h')
-rw-r--r--src/quicktemplates2/qquickpopup_p_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickpopup_p_p.h b/src/quicktemplates2/qquickpopup_p_p.h
index 084642ec..8490532c 100644
--- a/src/quicktemplates2/qquickpopup_p_p.h
+++ b/src/quicktemplates2/qquickpopup_p_p.h
@@ -96,6 +96,13 @@ public:
void init();
void closeOrReject();
bool tryClose(QQuickItem *item, QMouseEvent *event);
+
+ virtual bool acceptTouch(const QTouchEvent::TouchPoint &point);
+ virtual void handlePress(const QPointF &point);
+ virtual void handleMove(const QPointF &point);
+ virtual void handleRelease(const QPointF &point);
+ virtual void handleUngrab();
+
virtual void reposition();
virtual void resizeOverlay();
@@ -139,6 +146,7 @@ public:
bool allowHorizontalResize;
bool hadActiveFocusBeforeExitTransition;
bool interactive;
+ int touchId;
qreal x;
qreal y;
qreal effectiveX;