qt5base-lts/tests/auto/widgets/dialogs/qerrormessage
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
..
.gitignore
CMakeLists.txt Fix QErrorMessage test when using native dialogs 2023-01-09 14:14:49 +01:00
tst_qerrormessage.cpp Don't override QDialog::setVisible() to implement native dialogs 2023-01-09 14:14:53 +01:00