diff options
Diffstat (limited to 'src/quick/handlers/qquicktaphandler.cpp')
-rw-r--r-- | src/quick/handlers/qquicktaphandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quick/handlers/qquicktaphandler.cpp b/src/quick/handlers/qquicktaphandler.cpp index 1bcf42a073..b8d9754cde 100644 --- a/src/quick/handlers/qquicktaphandler.cpp +++ b/src/quick/handlers/qquicktaphandler.cpp @@ -54,7 +54,7 @@ int QQuickTapHandler::m_touchMultiTapDistanceSquared(-1); /*! \qmltype TapHandler \instantiates QQuickTapHandler - \inqmlmodule QtQuick + \inqmlmodule Qt.labs.handlers \ingroup qtquick-handlers \brief Handler for taps and clicks. @@ -78,7 +78,7 @@ int QQuickTapHandler::m_touchMultiTapDistanceSquared(-1); */ QQuickTapHandler::QQuickTapHandler(QObject *parent) - : QQuickPointerSingleHandler(parent) + : QQuickSinglePointHandler(parent) , m_pressed(false) , m_gesturePolicy(ReleaseWithinBounds) , m_tapCount(0) @@ -287,7 +287,7 @@ void QQuickTapHandler::setPressed(bool press, bool cancel, QQuickEventPoint *poi else m_tapCount = 1; qCDebug(lcTapHandler) << objectName() << "tapped" << m_tapCount << "times"; - emit tapped(point); + emit tapped(); emit tapCountChanged(); m_lastTapTimestamp = ts; m_lastTapPos = point->scenePos(); @@ -305,7 +305,7 @@ void QQuickTapHandler::setPressed(bool press, bool cancel, QQuickEventPoint *poi void QQuickTapHandler::onGrabChanged(QQuickPointerHandler *grabber, QQuickEventPoint::GrabState stateChange, QQuickEventPoint *point) { - QQuickPointerSingleHandler::onGrabChanged(grabber, stateChange, point); + QQuickSinglePointHandler::onGrabChanged(grabber, stateChange, point); bool isCanceled = stateChange == QQuickEventPoint::CancelGrabExclusive || stateChange == QQuickEventPoint::CancelGrabPassive; if (grabber == this && (isCanceled || point->state() == QQuickEventPoint::Released)) setPressed(false, isCanceled, point); |