forked from qt-creator/qt-creator
Fix usage of deprecated API QMessageBox::standardIcon
Instead use the style to get the icon and get the pixmap from there. Emulates what QMessageBox::setIcon(QMessageBox::Icon) does. Change-Id: Ic20d55070d510773eb194dc695689954b4862a2f Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -569,7 +569,7 @@ VcsBaseSubmitEditor::PromptSubmitResult
|
||||
const QString commitName = plugin->commitDisplayName();
|
||||
mb.setWindowTitle(tr("Close %1 %2 Editor")
|
||||
.arg(plugin->versionControl()->displayName(), commitName));
|
||||
mb.setIconPixmap(QMessageBox::standardIcon(QMessageBox::Question));
|
||||
mb.setIcon(QMessageBox::Question);
|
||||
QString message;
|
||||
if (canCommit) {
|
||||
message = tr("What do you want to do with these changes?");
|
||||
|
||||
Reference in New Issue
Block a user