diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-06-01 11:24:21 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-06-20 22:02:02 +0000 |
commit | acc1c7bcdf8cc03a0b3ed3d8f3957d0ce3f2bc2c (patch) | |
tree | c5d1b733c08a5c567453dbdfea1bf0589f79def3 /src/quick/handlers/qquicktaphandler.cpp | |
parent | f62abf14b0cc940b07e8fee84be979f34478ae2b (diff) |
Move wantsEventPoint() up from SinglePointHandler to QQPointerHandler
We want to be able to call it from the upcoming
QQuickItemPrivate::anyPointerHandlerWants function.
Change-Id: I15ef60303fa56f43e66b16c8dd0f4102070536d0
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/handlers/qquicktaphandler.cpp')
-rw-r--r-- | src/quick/handlers/qquicktaphandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/handlers/qquicktaphandler.cpp b/src/quick/handlers/qquicktaphandler.cpp index 902ff0df10..b12894e23f 100644 --- a/src/quick/handlers/qquicktaphandler.cpp +++ b/src/quick/handlers/qquicktaphandler.cpp @@ -107,7 +107,7 @@ QQuickTapHandler::~QQuickTapHandler() { } -static bool dragOverThreshold(QQuickEventPoint *point) +static bool dragOverThreshold(const QQuickEventPoint *point) { QPointF delta = point->scenePosition() - point->scenePressPosition(); return (QQuickWindowPrivate::dragOverThreshold(delta.x(), Qt::XAxis, point) || |