qt5base-lts/src/widgets
Santhosh Kumar 82e7ac23a0 Clear WA_UnderMouse attribute when widget gets hidden
From 6.3 onward, hiding a widget doesn't automatically clear
QT::WA_UnderMouse attribute.

This leads to multiple buttons drawn with highlighted rectangle at the
same time (refer bug). The behavior is observed after
commit 0246bfd40a made as part of
bug QTBUG-53286.

This patch clears WA_UnderMouse attribute in widget hideChildren() and
subsequently, widgets that are hidden will not inherit this attribute
on the next show operation.

The attribute will be set only when the widget is under mouse cursor.

Fixes: QTBUG-104805
Pick-to: 6.4
Change-Id: I4988eb72577fd557a328fd08bb09fa2fbded3138
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-09-20 10:34:08 +00:00
..
accessible Fix tree/table/list accessibility state 2022-08-31 22:58:24 +02:00
compat Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
dialogs add color picking support on wayland using the XDG desktop portal 2022-08-26 13:33:15 +02:00
doc Update the snippet for QFileDialog::saveFileContent 2022-08-26 14:46:16 +00:00
effects Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
graphicsview QGraphicsScene::render: fix int/qsizetype mismatch 2022-08-08 20:34:43 +00:00
itemviews QAbstractItemDelegate: tolerate that editor gets reparented 2022-08-25 18:04:19 +02:00
kernel Clear WA_UnderMouse attribute when widget gets hidden 2022-09-20 10:34:08 +00:00
styles Add all known StyleHint values to QCommonStyle::styleHint's switch 2022-09-14 09:19:01 +02:00
util Apply Q_CONSTINIT where beneficial 2022-09-01 19:44:19 +02:00
widgets Refix QDockwidget drag out dockwidget 2022-09-06 20:35:28 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
configure.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
Qt6WidgetsMacros.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qt_cmdline.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
QtWidgets.dynlist
qtwidgets.tracepoints Reduce amount of tracepoints required for event tracking 2019-05-02 14:15:58 +00:00