Qt: Add titles to various message boxes

This commit is contained in:
Techjar
2018-06-29 23:27:47 -04:00
parent e22c5333ab
commit 7785255470
5 changed files with 16 additions and 1 deletions

View File

@ -330,6 +330,7 @@ void ControllersWindow::OnBluetoothPassthroughResetPressed()
{
QMessageBox error(this);
error.setIcon(QMessageBox::Warning);
error.setWindowTitle(tr("Warning"));
error.setText(tr("Saved Wii Remote pairings can only be reset when a Wii game is running."));
error.exec();
return;
@ -350,6 +351,7 @@ void ControllersWindow::OnBluetoothPassthroughSyncPressed()
{
QMessageBox error(this);
error.setIcon(QMessageBox::Warning);
error.setWindowTitle(tr("Warning"));
error.setText(tr("A sync can only be triggered when a Wii game is running."));
error.exec();
return;
@ -462,6 +464,7 @@ void ControllersWindow::UnimplementedButton()
QMessageBox error_dialog(this);
error_dialog.setIcon(QMessageBox::Warning);
error_dialog.setWindowTitle(tr("Unimplemented"));
error_dialog.setText(tr("Not implemented yet."));
error_dialog.exec();
}

View File

@ -156,6 +156,7 @@ void MappingWindow::OnDeleteProfilePressed()
{
QMessageBox error(this);
error.setIcon(QMessageBox::Critical);
error.setWindowTitle(tr("Error"));
error.setText(tr("The profile '%1' does not exist").arg(profile_name));
error.exec();
return;
@ -164,6 +165,7 @@ void MappingWindow::OnDeleteProfilePressed()
QMessageBox confirm(this);
confirm.setIcon(QMessageBox::Warning);
confirm.setWindowTitle(tr("Confirm"));
confirm.setText(tr("Are you sure that you want to delete '%1'?").arg(profile_name));
confirm.setInformativeText(tr("This cannot be undone!"));
confirm.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
@ -179,6 +181,7 @@ void MappingWindow::OnDeleteProfilePressed()
QMessageBox result(this);
result.setIcon(QMessageBox::Information);
result.setWindowTitle(tr("Success"));
result.setText(tr("Successfully deleted '%1'.").arg(profile_name));
}