29 Q_DECLARE_PUBLIC(QQuickPointerHandler)
32 static QQuickPointerHandlerPrivate* get(QQuickPointerHandler *q) {
return q->d_func(); }
33 static const QQuickPointerHandlerPrivate* get(
const QQuickPointerHandler *q) {
return q->d_func(); }
35 QQuickPointerHandlerPrivate();
37 template<
typename TEventPoint>
38 bool dragOverThreshold(qreal d, Qt::Axis axis,
const TEventPoint &p)
const;
40 bool dragOverThreshold(QVector2D delta)
const;
41 bool dragOverThreshold(
const QEventPoint &point)
const;
43 virtual void onParentChanged(QQuickItem * , QQuickItem * ) {}
44 virtual void onEnabledChanged() {}
46 static QVector<QObject *> &deviceDeliveryTargets(
const QInputDevice *device);
48 QPointerEvent *currentEvent =
nullptr;
49 QQuickItem *target =
nullptr;
51 quint64 lastEventTime = 0;
52 qint16 dragThreshold = -1;
53 uint8_t grabPermissions : 8;
54 Qt::CursorShape cursorShape : 6;
57 bool targetExplicitlySet : 1;
58 bool hadKeepMouseGrab : 1;
59 bool hadKeepTouchGrab : 1;