qt5base-lts/tests/auto/widgets
Błażej Szczygieł 25c9a6c9b4 QtWidgets: Fix enter/leave events on popup menus
If the sloppy menu popups - send the leave event to the last active
menu (except Cocoa), because only currect active menu gets enter/leave
events (currently Cocoa is an exception).

Check that the menu really has a mouse before hiding the sloppy menu -
don't rely on enter events.

This patch removes some unnecessary synthetic mouse enter/leave events
from QMenu which causes event duplications with different mouse cursor
position.

Refactor sloppy menu timer handling - start or restart timers on mouse
move events. Enter/leave events are not reliable.

Fixes:
- better enter/leave events handling for native widget actions,
- reduce duplicated enter/leave events for menu actions,
- better handle torn off sloppy menus.

Partially reverts: 0ed68f3f58
Amends: 57ecd5aeeb

Task-number: QTBUG-53068
Change-Id: I7ad56ac1619db124915d373fab82d0512d44c90e
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2016-09-15 10:16:44 +00:00
..
dialogs tst_QFileSystemModel: Remove Win32LongFileName(). 2016-06-08 04:09:48 +00:00
effects Purge sRGB chunks from PNGs in tests. 2016-03-29 08:39:43 +00:00
gestures Autotest: Remove blacklistings 2016-04-01 05:41:21 +00:00
graphicsview Fix memory leak in tst_qgraphicsproxywidget 2016-08-10 11:06:31 +00:00
itemviews Don't call virtual functions with data from an old model 2016-08-04 11:48:51 +00:00
kernel QtWidgets: Fix enter/leave events on popup menus 2016-09-15 10:16:44 +00:00
styles Enable testStyleOptionInit for all styles and fix affected styles. 2016-06-06 13:12:14 +00:00
util QCompleter::setModel(): Restore completion role 2016-07-13 13:45:44 +00:00
widgets QAbstractSpinBox: Clear 'cleared' flag on receiving a keypress 2016-08-25 17:29:51 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00