diff options
Diffstat (limited to 'src/gui/kernel/qevent.h')
-rw-r--r-- | src/gui/kernel/qevent.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index cde7cb2..603f358 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -717,27 +717,25 @@ private: class Q_GUI_EXPORT QGestureEvent : public QEvent { public: - QGestureEvent(QWidget *targetWidget, const QList<QGesture*> &gestures, + QGestureEvent(const QList<QGesture*> &gestures, const QSet<Qt::GestureType> &cancelledGestures = QSet<Qt::GestureType>()); // internal ctor QGestureEvent(const QGestureEvent &gestures, const QPoint &offset); ~QGestureEvent(); - QWidget *targetWidget() const - { return m_targetWidget; } - inline bool contains(const Qt::GestureType &type) const { return gesture(type) != 0; } inline QList<Qt::GestureType> gestureTypes() const { return m_gestures.keys(); } inline const QGesture* gesture(const Qt::GestureType &type) const { return m_gestures.value(type, QSharedPointer<QGesture>()).data(); } + inline QList<QSharedPointer<QGesture> > gestures() const + { return m_gestures.values(); } inline QSet<Qt::GestureType> cancelledGestures() const { return m_cancelledGestures; } protected: - QWidget *m_targetWidget; QHash<Qt::GestureType, QSharedPointer<QGesture> > m_gestures; QSet<Qt::GestureType> m_cancelledGestures; |