![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qflickgesture_p.h>
Public Member Functions | |
QFlickGestureRecognizer (Qt::MouseButton button) | |
QGesture * | create (QObject *target) override |
\reimp | |
QGestureRecognizer::Result | recognize (QGesture *state, QObject *watched, QEvent *event) override |
void | reset (QGesture *state) override |
\reimp | |
Public Member Functions inherited from QGestureRecognizer | |
QGestureRecognizer () | |
Constructs a new gesture recognizer object. | |
virtual | ~QGestureRecognizer () |
Destroys the gesture recognizer. |
Additional Inherited Members | |
Public Types inherited from QGestureRecognizer | |
enum | ResultFlag { Ignore = 0x0001 , MayBeGesture = 0x0002 , TriggerGesture = 0x0004 , FinishGesture = 0x0008 , CancelGesture = 0x0010 , ResultState_Mask = 0x00ff , ConsumeEventHint = 0x0100 , ResultHint_Mask = 0xff00 } |
This enum describes the result of the current event filtering step in a gesture recognizer state machine. More... | |
Static Public Member Functions inherited from QGestureRecognizer | |
static Qt::GestureType | registerRecognizer (QGestureRecognizer *recognizer) |
Registers the given recognizer in the gesture framework and returns a gesture ID for it. | |
static void | unregisterRecognizer (Qt::GestureType type) |
Unregisters all gesture recognizers of the specified type. |
Definition at line 59 of file qflickgesture_p.h.
QFlickGestureRecognizer::QFlickGestureRecognizer | ( | Qt::MouseButton | button | ) |
Definition at line 291 of file qflickgesture.cpp.
|
overridevirtual |
The recognize function detects a touch event suitable to start the attached QScroller. The QFlickGesture will be triggered as soon as the scroller is no longer in the state QScroller::Inactive or QScroller::Pressed. It will be finished or canceled at the next QEvent::TouchEnd. Note that the QScroller might continue scrolling (kinetically) at this point.
Implements QGestureRecognizer.
Definition at line 316 of file qflickgesture.cpp.