qt5base-lts/tests/auto/widgets
Tor Arne Vestbø e0bb9e81ab Don't override QDialog::setVisible() to implement native dialogs
Clients who called the base-class implementation in QDialog would
as a result start hitting the canBeNativeDialog code path at the
start of QDialog::setVisible(), which would show the native dialog,
but without updating the QWidget visibility state.

To keep things 100% compatible, we shuffle the implementation of
QDialog::setVisible() into QDialogPrivate, which allows us to
override it in QMessageBoxPrivate and QErrorMessagePrivate.

The existing subclasses of QDialog that override setVisible have
been left as is, to not cause any unintended behavior change.

Pick-to: 6.5
Change-Id: Icafe31a7b84a75049365e4e04b80492de08614d2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-01-09 14:14:53 +01:00
..
dialogs Don't override QDialog::setVisible() to implement native dialogs 2023-01-09 14:14:53 +01:00
effects Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
graphicsview QGraphicsView: fix jumping graphic items when dragging out of view 2022-11-26 16:07:15 +02:00
itemviews QListView: Prevent infinite loop when wrapping text of item with null-icon 2023-01-04 13:42:06 +01:00
kernel Skip tst_QWidget::optimizedResizeMove and ..._topLevel on wayland 2023-01-03 19:21:39 +00:00
styles Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
util Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
widgets tests: skip tst_QComboBox::cancelClosesPopupNotDialog() on Wayland 2023-01-03 12:07:43 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00