summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qevent.h')
-rw-r--r--src/gui/kernel/qevent.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index 666cd3f..ea4f577 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -716,7 +716,7 @@ private:
class Q_GUI_EXPORT QGestureEvent : public QEvent
{
public:
- QGestureEvent(const QList<QGesture*> &gestures,
+ QGestureEvent(const QSet<QGesture*> &gestures,
const QSet<QString> &cancelledGestures = QSet<QString>());
~QGestureEvent();
@@ -731,6 +731,15 @@ public:
QSet<QString> cancelledGestures() const;
+ void acceptAll();
+#ifndef Q_NO_USING_KEYWORD
+ using QEvent::accept;
+#else
+ inline void accept() { QEvent::accept(); }
+#endif
+ void accept(Qt::GestureType type);
+ void accept(const QString &type);
+
protected:
QHash<QString, QGesture*> m_gestures;
QSet<QString> m_cancelledGestures;