qt5base-lts/tests/auto/widgets/dialogs
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
..
qcolordialog Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qdialog Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qerrormessage Don't override QDialog::setVisible() to implement native dialogs 2023-01-09 14:14:53 +01:00
qfiledialog Android: Skip/blacklist remaining tests for emulator bump to API 24 2022-11-15 01:01:54 +00:00
qfiledialog2 Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qfontdialog Remove unused tst_qfontdialog_mac_helpers.mm 2022-11-11 17:48:50 +01:00
qinputdialog Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qmessagebox Don't override QDialog::setVisible() to implement native dialogs 2023-01-09 14:14:53 +01:00
qprogressdialog Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qsidebar Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qwizard Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00