summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-03-24 07:37:43 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2015-03-24 07:38:02 +0100
commit135ebe4f3d268121047fdbfee49f2dd52006165e (patch)
tree6b303103f36e69e29cfa860b8b7afc584c55d6f3 /tests/manual
parente7feb956280105113b3e58f12e5f32f54199a95a (diff)
parent1e8f50a8d069c97ea6a4f00d664c12e594884f54 (diff)
Merge remote-tracking branch 'origin/5.5' into dev
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/diaglib/eventfilter.cpp6
-rw-r--r--tests/manual/diaglib/eventfilter.h1
2 files changed, 7 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)
diff --git a/tests/manual/diaglib/eventfilter.h b/tests/manual/diaglib/eventfilter.h
index 3b3674d8ad..954c55a557 100644
--- a/tests/manual/diaglib/eventfilter.h
+++ b/tests/manual/diaglib/eventfilter.h
@@ -59,6 +59,7 @@ public:
InputMethodEvents = 0x00400,
TimerEvents = 0x00800,
ObjectEvents = 0x01000,
+ GestureEvents = 0x02000,
AllEvents = 0xFFFFF
};
Q_DECLARE_FLAGS(EventCategories, EventCategory)