diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-10-04 11:54:53 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2017-10-05 11:09:17 +0000 |
commit | 2dd530ca35032465d4e928aa7c8f29563eb0c5da (patch) | |
tree | 1244ab00a76f5e4b603afa1d0de08d04e99d3c5a /examples | |
parent | 22e0de4a9fd2124a992c9e47540bf37bb273fbea (diff) |
pre-accept the mouse event before childMouseEventFilter; grab after
In 5.9 a typical filtering sequence would be
deliverPressEvent -> deliverMatchingPointsToItem -> QQuickWindow::sendEvent ->
sendFilteredMouseEvent -> Test::childMouseEventFilter, let's say it returns true;
then because the event is accepted, deliverMatchingPointsToItem grabs the mouse.
In 5.10, we rather do
deliverPressOrReleaseEvent -> sendFilteredPointerEvent -> sendFilteredPointerEventImpl ->
Test::childMouseEventFilter, which returns true; and in this case, setGrabberItem
was missing until now.
In case of touch rather than mouse, it grabs the touchpoints in this
kind of scenario.
Also made the failsafe more reliable to ensure that no grabs are retained
after release (after seeing that one failing autotest can cause failures
in subsequent tests).
Done-with: Jan-Arve Sæther
Task-number: QTBUG-62631
Task-number: QTBUG-62549
Task-number: QTBUG-62628
Change-Id: I16dafc9aa0de2fc163c524f7f5b109f82d7e84fd
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions