qt5base-lts/tests/auto/widgets
Alexander Volkov 559152d911 Make an implicit grab on TouchBegin for a widget subscribed to a gesture
A receiver of TouchUpdate and TouchEnd events is determined either
as a widget which has an implicit grab for the touch point or as a
visible widget if there are no implicit grabs. The events are sent
if the receiver has accepted TouchBegin event or if it is subscribed
to a gesture. Before sending the events to the widget they are
delivered to the gesture manager. Thus, in order to detect gestures
for the widget, it must own an implicit grab or be a visible widget.

It can happen that the parent widget is subscribed to a gesture, but
doesn't accept TouchBegin event, as in the case of QScrollArea. Then it
will not get an implicit grab and gesture detection will be impossible.

Activate an implicit grab for such widgets. Also don't send TouchUpdate
and TouchEnd to them, because it's against the documentation.

Task-number: QTBUG-43277
Change-Id: Id767583991def6d76c48ad15eb39af822cad115d
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
2016-03-05 21:49:59 +00:00
..
dialogs tst_QDialog: Instantiate test dialog on the stack. 2016-02-29 15:04:40 +00:00
effects tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
gestures Autotest: Enable make check on rhel 7.1 2016-02-11 05:47:38 +00:00
graphicsview Autotest: Enable make check on rhel 7.1 2016-02-11 05:47:38 +00:00
itemviews Blacklist tst_QTreeView::setSortingEnabledChild() on Windows. 2016-02-24 08:20:11 +00:00
kernel Make an implicit grab on TouchBegin for a widget subscribed to a gesture 2016-03-05 21:49:59 +00:00
styles tests: remove use of obsolete QStyleOption*V<N> 2015-11-03 16:11:51 +00:00
util Pass -silent to lrelease to avoid cruft in test logs. 2016-02-02 16:28:07 +00:00
widgets QtWidgets: Proper delivery of enter/leave event to context menus 2016-02-24 04:33:36 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00