summaryrefslogtreecommitdiffstats
path: root/tests/manual/diaglib/eventfilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/diaglib/eventfilter.cpp')
-rw-r--r--tests/manual/diaglib/eventfilter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/manual/diaglib/eventfilter.cpp b/tests/manual/diaglib/eventfilter.cpp
index cf0715e117..b35d29cc8a 100644
--- a/tests/manual/diaglib/eventfilter.cpp
+++ b/tests/manual/diaglib/eventfilter.cpp
@@ -140,6 +140,12 @@ void EventFilter::init(EventCategories eventCategories)
m_eventTypes << QEvent::InputMethodQuery;
#endif
}
+#ifndef QT_NO_GESTURES
+ if (eventCategories & GestureEvents) {
+ m_eventTypes << QEvent::Gesture << QEvent::GestureOverride
+ << QEvent::NativeGesture;
+ }
+#endif
}
static inline bool matchesType(const QObject *o, EventFilter::ObjectTypes types)