diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-10-19 12:20:02 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-10-22 14:59:19 (GMT) |
commit | 0c7254e1c5a20450495afe80c1ad5246e5e48314 (patch) | |
tree | 0178591741e39aaeb8c7514eea8c60177d4faa9c /src/gui/kernel/qevent_p.h | |
parent | 0b61c5e284462376afab15ac9189d759b859ec46 (diff) | |
download | Qt-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_p.h')
-rw-r--r-- | src/gui/kernel/qevent_p.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent_p.h b/src/gui/kernel/qevent_p.h index c7a4975..6e6ab01 100644 --- a/src/gui/kernel/qevent_p.h +++ b/src/gui/kernel/qevent_p.h @@ -150,6 +150,20 @@ public: #endif }; +class QGestureEventPrivate +{ +public: + inline QGestureEventPrivate(const QList<QGesture *> &list) + : gestures(list), widget(0) + { + } + + QList<QGesture *> gestures; + QWidget *widget; + QMap<Qt::GestureType, bool> accepted; + QMap<Qt::GestureType, QWidget *> targetWidgets; +}; + QT_END_NAMESPACE #endif // QEVENT_P_H |