42 #include "private/qwinnativepangesturerecognizer_win_p.h" 48 #include "private/qgesture_p.h" 49 #include "private/qevent_p.h" 50 #include "private/qapplication_p.h" 51 #include "private/qwidget_p.h" 53 #ifndef QT_NO_GESTURES 57 #if !defined(QT_NO_NATIVE_GESTURES) 69 if (qobject_cast<QGraphicsObject *>(target))
74 d->nativeGesturePanEnabled =
true;
75 d->winSetupGestures();
129 #endif // QT_NO_NATIVE_GESTURES 133 #endif // QT_NO_GESTURES
The QPanGesture class describes a panning gesture made by the user.
#define QT_END_NAMESPACE
This macro expands to.
The QPointF class defines a point in the plane using floating point precision.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void reset(QGesture *state)
This function is called by the framework to reset a given gesture.
Qt::GestureState state() const
QWinNativePanGestureRecognizer()
bool isWidgetType() const
Returns true if the object is a widget; otherwise returns false.
The QGesture class represents a gesture, containing properties that describe the corresponding user i...
The QPoint class defines a point in the plane using integer precision.
int y() const
Returns the y coordinate of this point.
int x() const
Returns the x coordinate of this point.
void reset(QGesture *state)
This function is called by the framework to reset a given gesture.
QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event)
Handles the given event for the watched object, updating the state of the gesture object as required...
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
QGesture * create(QObject *target)
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...