Qt/GeneralWidget: Add icon and title to the backend switch confirm dialog

This commit is contained in:
spycrab 2018-05-30 01:19:31 +02:00
parent a729c375f3
commit c07b89792d
1 changed files with 2 additions and 1 deletions

View File

@ -181,10 +181,11 @@ void GeneralWidget::SaveSettings()
{ {
if (backend->GetName() == "Software Renderer") if (backend->GetName() == "Software Renderer")
{ {
QMessageBox confirm_sw; QMessageBox confirm_sw(this);
confirm_sw.setIcon(QMessageBox::Warning); confirm_sw.setIcon(QMessageBox::Warning);
confirm_sw.setStandardButtons(QMessageBox::Yes | QMessageBox::No); confirm_sw.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
confirm_sw.setWindowTitle(tr("Confirm backend change"));
confirm_sw.setText( confirm_sw.setText(
tr("Software rendering is an order of magnitude slower than using the " tr("Software rendering is an order of magnitude slower than using the "
"other backends.\nIt's only useful for debugging purposes.\nDo you " "other backends.\nIt's only useful for debugging purposes.\nDo you "