diff options
| author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-10-18 13:28:52 +0200 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-10-20 21:37:57 +0200 |
| commit | 59d967a8fb60bb764654a857cac20196358865eb (patch) | |
| tree | 67c91b549e45742164533b9ff4e7132e3303fb16 /src/qml/compiler/qv4codegen.cpp | |
| parent | b8791806a317ca6aff1c237a226947064da462b2 (diff) | |
Add QQuickTest::pointerPress/Move/Release convenience functions
More autotests should test mouse, especially touch and maybe tablet
events, with similar expectations, instead of testing mainly mouse and
mostly neglecting the other device types. This makes it easier to work
with data-driven tests that take specific QPointingDevice instances as
test data.
Started using them in tst_TapHandler::gesturePolicyDragWithinBounds()
which was already data-driven by device type. Clearly, this code is
now easier to read and less repetitious.
In tst_qquickwindow::subclassWithPointerEventVirtualOverrides() the
improvement is somewhat smaller, but this test validates that
tablet events are working.
Change-Id: I74d0fcc2f082af3737a0754c58205fa2b18c1a2d
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
0 files changed, 0 insertions, 0 deletions
