summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscroller/tst_qscroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscroller/tst_qscroller.cpp')
-rw-r--r--tests/auto/qscroller/tst_qscroller.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/auto/qscroller/tst_qscroller.cpp b/tests/auto/qscroller/tst_qscroller.cpp
index 61d3980..4179fee 100644
--- a/tests/auto/qscroller/tst_qscroller.cpp
+++ b/tests/auto/qscroller/tst_qscroller.cpp
@@ -382,10 +382,13 @@ void tst_QScroller::scrollTo()
void tst_QScroller::scroll()
{
-#ifndef QT_NO_GESTURES
+#if defined(Q_OS_MACX) && (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6)
+ QSKIP("Mac OS X < 10.6 does not support QTouchEvents");
+ return;
+#endif
+#ifndef QT_NO_GESTURES
// -- good case. normal scroll
-
tst_QScrollerWidget *sw = new tst_QScrollerWidget();
sw->scrollArea = QRectF(0, 0, 1000, 1000);
QScroller::grabGesture(sw, QScroller::TouchGesture);
@@ -426,6 +429,11 @@ void tst_QScroller::scroll()
void tst_QScroller::overshoot()
{
+#if defined(Q_OS_MACX) && (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6)
+ QSKIP("Mac OS X < 10.6 does not support QTouchEvents");
+ return;
+#endif
+
#ifndef QT_NO_GESTURES
tst_QScrollerWidget *sw = new tst_QScrollerWidget();
sw->scrollArea = QRectF(0, 0, 1000, 1000);