aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-08-08 14:31:35 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-08-08 12:57:54 +0000
commit41d0240c8c203fe701efbddc00d0a05254a8a2c4 (patch)
tree55b9edad50aac54b54aebd541f535d827bcb1e2f /tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
parent003e24d72a9647e2dc397906234059fee19103ec (diff)
parent1b0c9b46ce13b0f9c533f18fb420ff10ad56e4f6 (diff)
Merge branch 'wip/pointerhandler' into dev
Diffstat (limited to 'tests/auto/quick/qquickflickable/tst_qquickflickable.cpp')
-rw-r--r--tests/auto/quick/qquickflickable/tst_qquickflickable.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
index ef6e444580..0bb913d104 100644
--- a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
+++ b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
@@ -63,7 +63,13 @@ public:
, touchReleases(0)
, ungrabs(0)
, m_active(false)
- { }
+ {
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
+ setAcceptTouchEvents(true);
+#else
+ setAcceptedMouseButtons(Qt::LeftButton); // not really, but we want touch events
+#endif
+ }
QPointF pos() const { return m_pos; }