KWidgetsAddons
ktwofingertap.cpp
45QGestureRecognizer::Result KTwoFingerTapRecognizer::recognize(QGesture *gesture, QObject *watched, QEvent *event)
77 if ((touchEvent->points().first().pressPosition() - touchEvent->points().first().position()).manhattanLength() > d->mTapRadius) {
void setTapRadius(int i)
Set the maximum wiggle room for a touch point.
Definition ktwofingertap.cpp:114
Result recognize(QGesture *gesture, QObject *watched, QEvent *event) override
Handles the given event for the watched object and update the gesture object.
Definition ktwofingertap.cpp:45
QGesture * create(QObject *target) override
Qt called this member to create a new QGesture object.
Definition ktwofingertap.cpp:39
TouchBegin
void setHotSpot(const QPointF &value)
state
GestureState
TouchPointPressed
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.