summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qtouchevent/tst_qtouchevent.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qtouchevent/tst_qtouchevent.cpp b/tests/auto/qtouchevent/tst_qtouchevent.cpp
index 9ec3dd7..8ed7035 100644
--- a/tests/auto/qtouchevent/tst_qtouchevent.cpp
+++ b/tests/auto/qtouchevent/tst_qtouchevent.cpp
@@ -67,9 +67,9 @@ void tst_QTouchEvent::touchDisabledByDefault()
Qt::NoModifier,
Qt::TouchPointPressed,
touchPoints);
- bool res = QApplication::sendEvent(&widget, &touchEvent)
- && touchEvent.isAccepted();
+ bool res = QApplication::sendEvent(&widget, &touchEvent);
QVERIFY(!res);
+ QVERIFY(!touchEvent.isAccepted());
}
void tst_QTouchEvent::touchEventAcceptedByDefault()
@@ -84,9 +84,9 @@ void tst_QTouchEvent::touchEventAcceptedByDefault()
Qt::NoModifier,
Qt::TouchPointPressed,
touchPoints);
- bool res = QApplication::sendEvent(&widget, &touchEvent)
- && touchEvent.isAccepted();
- QVERIFY(res);
+ bool res = QApplication::sendEvent(&widget, &touchEvent);
+ QVERIFY(!res); // not handled...
+ QVERIFY(touchEvent.isAccepted()); // but accepted
}
QTEST_MAIN(tst_QTouchEvent)