From 31d90e308e46d644d74e9434ce31dd664677bc59 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 24 Aug 2017 15:55:33 +0200 Subject: SwipeDelegate: grab the mouse when accepting a press event After 1f4bfc099b7e48e2cc3dd9488b7b42a96122b299 in qtdeclarative, QQuickWindow does not cause the Item to which it's about to attempt to deliver an event to pre-grab. (That caused a lot of thrashing of the grabber, so not doing that is a nice simplification, and also avoids the need to ungrab later, and also makes mouse event handling more like touch event handling.) So whenever SwipeDelegate knows at the time of mouse press that it wants to see the release too, it should grab. The grabber can be either the Item for which it's filtering events, or the SwipeDelegate itself, whichever is more appropriate in any given scenario. For now I assume it should be the delivery-target Item, because that's what would have had the grab before. Task-number: QTBUG-62412 Task-number: QTBUG-62631 Change-Id: Ie01276508c6602b10f9d7996a748ffe90efa36b5 Reviewed-by: Mitch Curtis Reviewed-by: Shawn Rutledge --- tests/auto/controls/fusion/BLACKLIST | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 tests/auto/controls/fusion/BLACKLIST (limited to 'tests/auto/controls/fusion/BLACKLIST') diff --git a/tests/auto/controls/fusion/BLACKLIST b/tests/auto/controls/fusion/BLACKLIST deleted file mode 100644 index 92121233..00000000 --- a/tests/auto/controls/fusion/BLACKLIST +++ /dev/null @@ -1,20 +0,0 @@ -# See qtbase/src/testlib/qtestblacklist.cpp for format - -# https://bugreports.qt.io/browse/QTBUG-62412 -[SwipeDelegate::test_close] -* - -[SwipeDelegate::test_dragSideAction] -* - -[SwipeDelegate::test_eventsToLeftAndRight] -* - -[SwipeDelegate::test_multipleClickableActions] -* - -[SwipeDelegate::test_removableDelegates] -* - -[SwipeDelegate::test_swipeVelocity] -* -- cgit v1.2.3