summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtouchevent
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-12-11 10:35:57 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-12-11 11:32:25 (GMT)
commitbafc505ea03ff423c02e0380ba6f255e160483a1 (patch)
tree658d39fd61fc4aa4f24cad1d556e1f5f85b10691 /tests/auto/qtouchevent
parent669cb438384f1ceafd4b2ee783b9a52d7110ccf7 (diff)
downloadQt-bafc505ea03ff423c02e0380ba6f255e160483a1.zip
Qt-bafc505ea03ff423c02e0380ba6f255e160483a1.tar.gz
Qt-bafc505ea03ff423c02e0380ba6f255e160483a1.tar.bz2
Fix tst_QTouchEvent::touchUpdateAndEndNeverPropagate()
QGrahpicsItem behaves similarly to QWidget; if the TouchUpdate or TouchEnd event is ignored, then the event sent to the view and scene will also be ignored. Reviewed-by: Trust me
Diffstat (limited to 'tests/auto/qtouchevent')
-rw-r--r--tests/auto/qtouchevent/tst_qtouchevent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qtouchevent/tst_qtouchevent.cpp b/tests/auto/qtouchevent/tst_qtouchevent.cpp
index f95a5c6..98af4fb 100644
--- a/tests/auto/qtouchevent/tst_qtouchevent.cpp
+++ b/tests/auto/qtouchevent/tst_qtouchevent.cpp
@@ -496,7 +496,7 @@ void tst_QTouchEvent::touchUpdateAndEndNeverPropagate()
res = QApplication::sendEvent(view.viewport(), &touchUpdateEvent);
QVERIFY(res);
// the scene accepts the event, since it found an item to send the event to
- QVERIFY(touchUpdateEvent.isAccepted());
+ QVERIFY(!touchUpdateEvent.isAccepted());
QVERIFY(child.seenTouchUpdate);
QVERIFY(!root.seenTouchUpdate);
@@ -510,7 +510,7 @@ void tst_QTouchEvent::touchUpdateAndEndNeverPropagate()
res = QApplication::sendEvent(view.viewport(), &touchEndEvent);
QVERIFY(res);
// the scene accepts the event, since it found an item to send the event to
- QVERIFY(touchEndEvent.isAccepted());
+ QVERIFY(!touchEndEvent.isAccepted());
QVERIFY(child.seenTouchEnd);
QVERIFY(!root.seenTouchEnd);
}