summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-19 12:20:02 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-22 14:59:19 (GMT)
commit0c7254e1c5a20450495afe80c1ad5246e5e48314 (patch)
tree0178591741e39aaeb8c7514eea8c60177d4faa9c /src/gui/kernel/qevent.h
parent0b61c5e284462376afab15ac9189d759b859ec46 (diff)
downloadQt-0c7254e1c5a20450495afe80c1ad5246e5e48314.zip
Qt-0c7254e1c5a20450495afe80c1ad5246e5e48314.tar.gz
Qt-0c7254e1c5a20450495afe80c1ad5246e5e48314.tar.bz2
Improvements for gesture event delivery
When delivering GestureOverride events by default both the event and individual gestures will be ignored. We also store the acceptance state of individual gesture in the event and not in the gesture object, along with its target. Reviewed-by: Thomas Zander
Diffstat (limited to 'src/gui/kernel/qevent.h')
-rw-r--r--src/gui/kernel/qevent.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index 1ba2d41..5eefc2d 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -820,10 +820,12 @@ protected:
};
class QGesture;
+class QGestureEventPrivate;
class Q_GUI_EXPORT QGestureEvent : public QEvent
{
public:
QGestureEvent(const QList<QGesture *> &gestures);
+ ~QGestureEvent();
QList<QGesture *> allGestures() const;
QGesture *gesture(Qt::GestureType type) const;
@@ -854,10 +856,11 @@ public:
QWidget *widget() const;
private:
- QList<QGesture *> gestures_;
- QWidget *widget_;
+ QGestureEventPrivate *d_func();
+ const QGestureEventPrivate *d_func() const;
friend class QApplication;
+ friend class QGestureManager;
};
QT_END_NAMESPACE