diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-08 08:10:41 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-08 08:10:41 (GMT) |
commit | e982ba18f8cffaa55f7c73a3ef877932abb91db1 (patch) | |
tree | c1eabd836792dfcd31b193ceea2011014765b383 /tests/auto/qtouchevent | |
parent | 8f86de1aa775a44c3477a318635a7ed8ff4ed064 (diff) | |
download | Qt-e982ba18f8cffaa55f7c73a3ef877932abb91db1.zip Qt-e982ba18f8cffaa55f7c73a3ef877932abb91db1.tar.gz Qt-e982ba18f8cffaa55f7c73a3ef877932abb91db1.tar.bz2 |
make QTouchEvent autotest pass
the event is accepted by default, but no handled
Diffstat (limited to 'tests/auto/qtouchevent')
-rw-r--r-- | tests/auto/qtouchevent/tst_qtouchevent.cpp | 10 |
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) |