Merge pull request #7859 from spycrab/qt_question_warning

Qt/ModalMessageBox: Use Warning instead of Critical icon for questions
This commit is contained in:
spycrab 2019-03-06 14:34:43 +01:00 committed by GitHub
commit b8bcfe6865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ int ModalMessageBox::information(QWidget* parent, const QString& title, const QS
int ModalMessageBox::question(QWidget* parent, const QString& title, const QString& text, int ModalMessageBox::question(QWidget* parent, const QString& title, const QString& text,
StandardButtons buttons, StandardButton default_button) StandardButtons buttons, StandardButton default_button)
{ {
return ExecMessageBox(QMessageBox::Critical, parent, title, text, buttons, default_button); return ExecMessageBox(QMessageBox::Warning, parent, title, text, buttons, default_button);
} }
int ModalMessageBox::warning(QWidget* parent, const QString& title, const QString& text, int ModalMessageBox::warning(QWidget* parent, const QString& title, const QString& text,