QErrorMessage: fix deprecated warning about standardIcon

Change-Id: Idf50c1b74fddfccded2003528181f81a7a0ca8ac
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Mårten Nordheim 2022-03-04 13:48:57 +01:00
parent 148d52e04d
commit bf6d313ec8

View File

@ -235,7 +235,7 @@ QErrorMessage::QErrorMessage(QWidget * parent)
grid->setRowStretch(0, 42);
#if QT_CONFIG(messagebox)
d->icon->setPixmap(QMessageBox::standardIcon(QMessageBox::Information));
d->icon->setPixmap(style()->standardPixmap(QStyle::SP_MessageBoxInformation));
d->icon->setAlignment(Qt::AlignHCenter | Qt::AlignTop);
#endif
d->again->setChecked(true);