aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickdeliveryagent_p_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/util/qquickdeliveryagent_p_p.h')
-rw-r--r--src/quick/util/qquickdeliveryagent_p_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/quick/util/qquickdeliveryagent_p_p.h b/src/quick/util/qquickdeliveryagent_p_p.h
index 7852ad4673..0fce213291 100644
--- a/src/quick/util/qquickdeliveryagent_p_p.h
+++ b/src/quick/util/qquickdeliveryagent_p_p.h
@@ -107,7 +107,8 @@ public:
bool isDeliveringTouchAsMouse() const { return touchMouseId != -1 && touchMouseDevice; }
void cancelTouchMouseSynthesis();
- bool checkIfDoubleTapped(ulong newPressEventTimestamp, QPoint newPressPos);
+ bool checkIfDoubleTapped(ulong newPressEventTimestamp, const QPoint &newPressPos);
+ void resetIfDoubleTapPrevented(const QEventPoint &pressedPoint);
QPointingDevicePrivate::EventPointData *mousePointData();
QPointerEvent *eventInDelivery() const;
@@ -146,6 +147,8 @@ public:
static bool isTabletEvent(const QPointerEvent *ev);
static bool isEventFromMouseOrTouchpad(const QPointerEvent *ev);
static bool isSynthMouse(const QPointerEvent *ev);
+ static bool isWithinDoubleClickInterval(ulong timeInterval);
+ static bool isWithinDoubleTapDistance(const QPoint &distanceBetweenPresses);
static QQuickPointingDeviceExtra *deviceExtra(const QInputDevice *device);
// delivery of pointer events: