summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/kernel/qtouchevent
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-08-21 13:34:52 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2020-08-25 06:34:01 +0200
commitc7f727996909338c3689396160f3060480521846 (patch)
treec8ec4dada74a6e1c3f5552a9e32bacde59bdba0d /tests/auto/gui/kernel/qtouchevent
parentfb9ec8ad44decba7b2878370f3711b61614f035a (diff)
Introduce QEvent::isPointerEvent()
This makes high-level event dispatching easier: for example in Qt Quick, all pointer events should eventually be delivered to items in a similar way. Implemented in a similar way as d1111632e29124531d5b4512e0492314caaae396. Change-Id: I2f0c4914bab228162f3b932dda8a88051ec2a4d7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/gui/kernel/qtouchevent')
-rw-r--r--tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp b/tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp
index 0b5de83018..332d04ecd4 100644
--- a/tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp
+++ b/tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp
@@ -302,6 +302,8 @@ void tst_QTouchEvent::state()
QVERIFY(touchEvent.isPressEvent());
QVERIFY(!touchEvent.isUpdateEvent());
QVERIFY(!touchEvent.isReleaseEvent());
+ QVERIFY(touchEvent.isInputEvent());
+ QVERIFY(touchEvent.isPointerEvent());
touchEvent = QTouchEvent(QEvent::TouchBegin, touchScreenDevice,
Qt::NoModifier, QList<QEventPoint>() <<