QMessageBox: fix deprecated warning about using old ctor

Change-Id: Ib53962e3527e2703af5ff36ce2fd4bd5ea987d85
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Mårten Nordheim 2022-03-04 13:51:28 +01:00
parent 76016d9948
commit 148d52e04d

View File

@ -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