From 148d52e04d8bedc8b65cef0d820b44d1ce169de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Fri, 4 Mar 2022 13:51:28 +0100 Subject: [PATCH] QMessageBox: fix deprecated warning about using old ctor Change-Id: Ib53962e3527e2703af5ff36ce2fd4bd5ea987d85 Reviewed-by: Volker Hilsheimer --- src/widgets/dialogs/qmessagebox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/dialogs/qmessagebox.cpp b/src/widgets/dialogs/qmessagebox.cpp index 9572b7a807..db1ad77613 100644 --- a/src/widgets/dialogs/qmessagebox.cpp +++ b/src/widgets/dialogs/qmessagebox.cpp @@ -1812,7 +1812,7 @@ void QMessageBox::about(QWidget *parent, const QString &title, const QString &te } #endif - QMessageBox *msgBox = new QMessageBox(title, text, Information, 0, 0, 0, parent + QMessageBox *msgBox = new QMessageBox(Information, title, text, NoButton, parent #ifdef Q_OS_MAC , Qt::WindowTitleHint | Qt::WindowSystemMenuHint #endif