diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-06-08 14:06:56 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-06-15 12:56:20 (GMT) |
commit | cb8576e538e08e450ed4129d03272071bdc15709 (patch) | |
tree | f82a8302d7512e74581da6a51bf619c27d1e10b5 /src/gui/kernel/qapplication.cpp | |
parent | 948e68ffa22e9b584f0612e3c67ad46a68a09746 (diff) | |
download | Qt-cb8576e538e08e450ed4129d03272071bdc15709.zip Qt-cb8576e538e08e450ed4129d03272071bdc15709.tar.gz Qt-cb8576e538e08e450ed4129d03272071bdc15709.tar.bz2 |
All events should be filtered through the gesture manager.
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 01c8b11..fcc8d30 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -3606,11 +3606,7 @@ bool QApplication::notify(QObject *receiver, QEvent *e) if (!d->grabbedGestures.isEmpty() && e->spontaneous() && receiver->isWidgetType()) { const QEvent::Type t = e->type(); - if (t == QEvent::MouseButtonPress || t == QEvent::MouseButtonRelease || t == QEvent::MouseMove - || t == QEvent::MouseButtonDblClick || t == QEvent::Wheel - || t == QEvent::KeyPress || t == QEvent::KeyRelease - || t == QEvent::TabletPress || t == QEvent::TabletRelease || t == QEvent::TabletMove - || t >= QEvent::User) { + if (t != QEvent::Gesture && t != QEvent::GraphicsSceneGesture) { if (QGestureManager::instance()->filterEvent(static_cast<QWidget*>(receiver), e)) return true; } |