QErrorMessage: fix deprecated warning about standardIcon
Change-Id: Idf50c1b74fddfccded2003528181f81a7a0ca8ac Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
148d52e04d
commit
bf6d313ec8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user