qt6-bb10/src
Volker Hilsheimer d934fd7f54 Send MouseMove events without buttons if the press closed the popup
With nested popup widgets, pressing a mouse button on the lower
popup will close the active popup. MouseMove events that are generated
before the button is released again should not have that button
included, as it is likely to result in incorrect state handling in
the widget. This change removes all buttons from the MouseMove event,
which is the second best option.

This is mostly consistent with the behavior when closing a popup and
no other popup remains. The widget underneath will get MouseMove
events without the respective button included.

This change doesn't include a fix for the final release event, which
should ideally also not be delivered to the remaining popup, as it
never got a corresponding press event. Qt has already reset the states
in which it stores which widget received the press event at the time
the release is generated, such as qt_button_down and qt_popup_down.
So we can't separate a release grabbed by a newly opened popup (which
we want) from a release to the popup that became active after closing
(which we don't want).
However, widgets can more easily work around this issue, and the risk
of breaking things by changing the code further becomes too high.

Change-Id: I603bbdbc7e7355952d96ab77c5e2d2f1e6f94987
Fixes: QTBUG-82538
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
2020-03-30 20:06:20 +01:00
..
3rdparty CBOR support: prevent overflowing QByteArray's max allocation 2020-03-27 16:45:48 -03:00
android Android: Include the resConfigs so that the package can be uploaded 2020-03-03 12:36:43 +01:00
angle ANGLE: Fix resizing of windows (Take 2) 2020-03-24 14:25:51 +01:00
concurrent QtConcurrent: fix warning about function parameters shadowing class members 2019-10-08 23:21:14 +02:00
corelib CBOR support: prevent overflowing QByteArray's max allocation 2020-03-27 16:45:48 -03:00
dbus Doc: Fix qdoc compilation errors qtbase 2020-01-17 12:56:08 +00:00
gui Doc: fix copy paste errors in border-*-style documentation 2020-03-21 11:36:04 +02:00
network q_getTimeFromASN1: fix invalid access 2020-03-19 14:48:08 +01:00
opengl Fix depth in renderText() 2019-12-03 13:51:28 +01:00
openglextensions QtGui: Disable Windows on ARM64 preprocessor conflict in QtOpenGL 2019-10-21 09:14:18 -04:00
platformheaders Doc: Display correct include for QWindowsWindowFunctions 2020-01-17 14:19:00 +01:00
platformsupport Do not crash on skipped Xlib visuals 2020-03-11 16:28:14 +00:00
plugins macOS: Flush sublayers via separate IOSurface backingstores 2020-03-25 12:20:00 +01:00
printsupport Doc/Printsupport: misc fixes 2020-01-31 06:23:59 +01:00
sql Doc: List alternative ways to get the MySQL C Connector 2020-02-27 06:30:19 +08:00
testlib testlib: add QAbstractItemModelTester::verify() 2020-03-30 19:32:06 +02:00
tools Android: Fix deployment on Windows host 2020-03-19 10:23:07 +01:00
widgets Send MouseMove events without buttons if the press closed the popup 2020-03-30 20:06:20 +01:00
winmain Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
xml QDom: use correct precision when converting float/double values 2020-03-03 22:08:18 +01:00
src.pro Merge remote-tracking branch 'origin/5.13' into 5.14 2019-10-10 09:13:49 +02:00