qt6-bb10/tests/auto/widgets
Marco Martin 7fffc04335 Reset d->mouseDown only if it's the menu being hidden
If the mouse cursor is over a menu entry with a submenu, and the
submenu is open, quickly moving the mouse to a near menu entry and
clicking it sometimes results in the click being eaten: this happens
when the mouse is pressed before the submenu disappears and released
after it disappeared: the submenu resets d->mouseDown that is a static,
causing the mouse release event on the action we want to have no effect.
Set d->mouseDown to 0 only when the window is hiding is the actual
window that contains the mouseDown, otherwise is still valid.

Change-Id: I2c981b9432728e9e7518c30a146c9595199f8afe
Reviewed-by: Błażej Szczygieł <spaz16@wp.pl>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2017-04-18 08:18:57 +00:00
..
dialogs Merge remote-tracking branch 'origin/5.8' into 5.9 2017-02-08 15:49:18 +01:00
effects QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
gestures autotests: use QTest::createTouchDevice() 2016-06-10 13:07:17 +00:00
graphicsview Pluginize the platform styles 2017-04-14 17:07:54 +00:00
itemviews Fix tst_QDirModel for qemu 2017-04-07 05:53:47 +00:00
kernel Merge remote-tracking branch 'origin/5.9' into dev 2017-04-07 10:24:33 +02:00
styles Pluginize the platform styles 2017-04-14 17:07:54 +00:00
util Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
widgets Reset d->mouseDown only if it's the menu being hidden 2017-04-18 08:18:57 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00