qt5base-lts/tests/auto/widgets
Błażej Szczygieł 57ecd5aeeb QtWidgets: Proper delivery of enter/leave event to context menus
First-level context menu grabs the mouse, so all mouse events are
delivered to it. This menu passes the mouse events to submenus. Any
platform delivers mouse enter/leave event differently when window is
grabbed. This patch unifies event delivery to context menus - it can
block some unwanted events and it emulates fake events if necessary.

This patch can reduce duplicated events and can provide proper enter
or leave event to additional widgets in the context menu. It can also
prevent submenu from unwanted close on Windows and X11.

Added autotest.

Task-number: QTBUG-45565
Task-number: QTBUG-45893
Task-number: QTBUG-47515
Change-Id: I7dd476d0be23afa34e947e54aef235012d173dcf
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
2016-02-24 04:33:36 +00:00
..
dialogs Autotest: Blacklist tst_QFontDialog::setFont() 2016-02-23 07:30:34 +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 Re-enable tst_QTreeView::setSortingEnabled on Windows. 2016-02-18 22:54:19 +00:00
kernel Autotest: Enable make check on rhel 7.1 2016-02-11 05:47:38 +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