From e982ba18f8cffaa55f7c73a3ef877932abb91db1 Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Mon, 8 Jun 2009 10:10:41 +0200 Subject: make QTouchEvent autotest pass the event is accepted by default, but no handled --- tests/auto/qtouchevent/tst_qtouchevent.cpp | 10 +++++----- 1 file 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) -- cgit v0.12