summaryrefslogtreecommitdiffstats
path: root/src/widgets/util
diff options
context:
space:
mode:
authorBłażej Szczygieł <spaz16@wp.pl>2016-05-04 00:23:16 +0200
committerBłażej Szczygieł <spaz16@wp.pl>2016-09-15 10:16:44 +0000
commit25c9a6c9b46e6ae58dcccdc3ba158d14945cbf33 (patch)
tree1376a1853a14a42332fdf2e8dc7560745f80ae49 /src/widgets/util
parent2cf3dee10be1d2163eff0893f51f9ece643c2540 (diff)
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: 0ed68f3f58c63bd1496cb268bd83881da180051f Amends: 57ecd5aeeb1f609206933be66b92fcdf703703d7 Task-number: QTBUG-53068 Change-Id: I7ad56ac1619db124915d373fab82d0512d44c90e Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/widgets/util')
0 files changed, 0 insertions, 0 deletions