KWidgetsAddons
ktwofingerswipe.cpp
46QGestureRecognizer::Result KTwoFingerSwipeRecognizer::recognize(QGesture *gesture, QObject *watched, QEvent *event)
74 const QLineF ql = QLineF(touchEvent->points().first().pressPosition(), touchEvent->points().first().position());
The recognizer for a two finger swipe gesture.
Definition ktwofingerswipe.h:116
QGesture * create(QObject *target) override
Qt called this member to create a new QGesture object.
Definition ktwofingerswipe.cpp:40
void setMaxSwipeTime(int i)
Set the maximum duration of the swipe gesture.
Definition ktwofingerswipe.cpp:120
int minSswipeDistance() const
Definition ktwofingerswipe.cpp:129
Result recognize(QGesture *gesture, QObject *watched, QEvent *event) override
Handles the given event for the watched object and update the gesture object.
Definition ktwofingerswipe.cpp:46
void setSwipeDistance(int i)
Set the minimum distance of the swipe gesture.
Definition ktwofingerswipe.cpp:134
void setPos(QPointF pos)
Sets the position, relative to the widget.
Definition ktwofingerswipe.cpp:174
void setSwipeAngle(qreal swipeAngle)
Sets the angle of the swipe gesture.
Definition ktwofingerswipe.cpp:203
TouchBegin
void setHotSpot(const QPointF &value)
state
qreal angle() const const
qreal length() const const
GestureUpdated
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.