diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2023-08-31 09:17:55 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2023-09-01 00:11:50 +0200 |
commit | b2f4e1e395bba4b72d5e1d5cc6e4469b97731a65 (patch) | |
tree | d8c899087834788ae6a306e98ebc49e7205d22fd /src/widgets/dialogs | |
parent | 8c5e5af11f83b21b61e9a4787a8435193c5d647e (diff) |
Remove dead code in QMessageBox
Remove code guarded by #ifdef 0
Task-number: QTBUG-115832
Pick-to: 6.6 6.5
Change-Id: I7d1dfd3dca2d8cda455d73f90dc2ae142ea41118
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/dialogs')
-rw-r--r-- | src/widgets/dialogs/qmessagebox.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/widgets/dialogs/qmessagebox.cpp b/src/widgets/dialogs/qmessagebox.cpp index bd7c8e8633..17665202ae 100644 --- a/src/widgets/dialogs/qmessagebox.cpp +++ b/src/widgets/dialogs/qmessagebox.cpp @@ -1936,12 +1936,7 @@ void QMessageBox::about(QWidget *parent, const QString &title, const QString &te // should perhaps be a style hint #ifdef Q_OS_MAC oldMsgBox = msgBox; -#if 0 - // ### doesn't work until close button is enabled in title bar - msgBox->d_func()->autoAddOkButton = false; -#else msgBox->d_func()->buttonBox->setCenterButtons(true); -#endif msgBox->setModal(false); msgBox->show(); #else @@ -2022,12 +2017,7 @@ void QMessageBox::aboutQt(QWidget *parent, const QString &title) // should perhaps be a style hint #ifdef Q_OS_MAC oldMsgBox = msgBox; -#if 0 - // ### doesn't work until close button is enabled in title bar - msgBox->d_func()->autoAddOkButton = false; -#else msgBox->d_func()->buttonBox->setCenterButtons(true); -#endif msgBox->setModal(false); msgBox->show(); #else |