Public Member Functions
|~KTwoFingerSwipeRecognizer () override|
|QGesture *||create (QObject *target) override|
|int||maxSwipeTime () const|
|int||minSswipeDistance () const|
|Result||recognize (QGesture *gesture, QObject *watched, QEvent *event) override|
|void||setMaxSwipeTime (int i)|
|void||setSwipeDistance (int i)|
|Public Member Functions inherited from QGestureRecognizer|
|virtual void||reset (QGesture *gesture)|
Additional Inherited Members
|Public Types inherited from QGestureRecognizer|
|Static Public Member Functions inherited from QGestureRecognizer|
|Qt::GestureType||registerRecognizer (QGestureRecognizer *recognizer)|
|void||unregisterRecognizer (Qt::GestureType type)|
|Public Attributes inherited from QGestureRecognizer|
The recognizer for a two finger swipe gesture.
Provides the recognizer for a two finger swipe gesture. To adjust the maximum swipe time and the minimum swipe distance, for a valid swipe gesture:
- See also
Definition at line 115 of file ktwofingerswipe.h.
Constructor & Destructor Documentation
Definition at line 30 of file ktwofingerswipe.cpp.
Definition at line 36 of file ktwofingerswipe.cpp.
Member Function Documentation
Qt called this member to create a new QGesture object.
target The target for the gesture.
- The new QGesture object.
Reimplemented from QGestureRecognizer.
Definition at line 40 of file ktwofingerswipe.cpp.
- The maximum duration for the swipe gesture, in milliseconds.
Definition at line 115 of file ktwofingerswipe.cpp.
- The minimum distance for the swipe gesture.
Definition at line 129 of file ktwofingerswipe.cpp.
Handles the given event for the watched object and update the gesture object.
gesture The gesture object. watched The watched object. event The event.
- The result reflects how much of the gesture has been recognized.
Definition at line 46 of file ktwofingerswipe.cpp.
Set the maximum duration of the swipe gesture.
i is negative, it will be set to null. i The maximum duration in milliseconds.
Definition at line 120 of file ktwofingerswipe.cpp.
Set the minimum distance of the swipe gesture.
i is negative, it will be set to null. i The minimum distance.
Definition at line 134 of file ktwofingerswipe.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:01:28 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.