diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-10-10 16:51:13 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-12-05 07:57:34 +0000 |
commit | ff6bd91f580fa5ddae2d02f32b9d83be4374a445 (patch) | |
tree | c49ea2fe1d52db1aaf65696282004880f223ad98 /tests/auto/quick/pointerhandlers/mousearea_interop/mousearea_interop.pro | |
parent | 33d93478aa2a53983dd6a02588db2dc0ccbe694d (diff) |
MouseArea: react to touch ungrab
If an event handler (such as DragHandler) takes the exclusive grab
of a touchpoint that MouseArea had already grabbed as a synth-mouse,
it should react in the same way as if its grab of the actual mouse was
stolen: release the pressed state, etc.
Fixes: QTBUG-77624
Change-Id: I51f4fb253f7d0377be421c23e617942507616e72
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
(cherry picked from commit 23df1603f514407d245a2740f32f589318ef654e)
Diffstat (limited to 'tests/auto/quick/pointerhandlers/mousearea_interop/mousearea_interop.pro')
-rw-r--r-- | tests/auto/quick/pointerhandlers/mousearea_interop/mousearea_interop.pro | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/quick/pointerhandlers/mousearea_interop/mousearea_interop.pro b/tests/auto/quick/pointerhandlers/mousearea_interop/mousearea_interop.pro new file mode 100644 index 0000000000..0bf0ec86a9 --- /dev/null +++ b/tests/auto/quick/pointerhandlers/mousearea_interop/mousearea_interop.pro @@ -0,0 +1,15 @@ +CONFIG += testcase + +TARGET = tst_mousearea_interop +QT += core-private gui-private qml-private quick-private testlib + +macos:CONFIG -= app_bundle + +SOURCES += tst_mousearea_interop.cpp + +include (../../../shared/util.pri) +include (../../shared/util.pri) + +TESTDATA = data/* + +OTHER_FILES += data/dragTakeOverFromSibling.qml |