summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qgesture.h')
-rw-r--r--src/gui/kernel/qgesture.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesture.h b/src/gui/kernel/qgesture.h
index da1bc90..d220232 100644
--- a/src/gui/kernel/qgesture.h
+++ b/src/gui/kernel/qgesture.h
@@ -82,6 +82,12 @@ public:
uint duration, Qt::GestureState state);
virtual ~QGesture();
+ inline void setAccepted(bool accepted) { m_accept = accepted; }
+ inline bool isAccepted() const { return m_accept; }
+
+ inline void accept() { m_accept = true; }
+ inline void ignore() { m_accept = false; }
+
QString type() const;
Qt::GestureState state() const;
@@ -100,6 +106,8 @@ protected:
virtual void translate(const QPoint &offset);
private:
+ ushort m_accept : 1;
+
friend class QGestureManager;
friend class QApplication;
friend class QGestureRecognizerPan;