Qt: Change some labels

This commit is contained in:
Megamouse 2020-01-26 16:34:04 +01:00
parent 1e69de1205
commit b341113ad8
3 changed files with 7 additions and 5 deletions

View File

@ -897,8 +897,9 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
boot->setFont(f);
}
myMenu.addAction(boot);
QAction* configure = myMenu.addAction(tr("&Configure"));
QAction* pad_configure = myMenu.addAction(tr("&Configure pads"));
myMenu.addSeparator();
QAction* configure = myMenu.addAction(gameinfo->hasCustomConfig ? tr("&Change Custom Configuration") : tr("&Create Custom Configuration"));
QAction* pad_configure = myMenu.addAction(gameinfo->hasCustomPadConfig ? tr("&Change Custom Gamepad Configuration") : tr("&Create Custom Gamepad Configuration"));
QAction* createPPUCache = myMenu.addAction(tr("&Create PPU Cache"));
myMenu.addSeparator();
QAction* renameTitle = myMenu.addAction(tr("&Rename In Game List"));
@ -921,7 +922,7 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
}
if (gameinfo->hasCustomPadConfig)
{
QAction* remove_custom_pad_config = remove_menu->addAction(tr("&Remove Custom Pad Configuration"));
QAction* remove_custom_pad_config = remove_menu->addAction(tr("&Remove Custom Gamepad Configuration"));
connect(remove_custom_pad_config, &QAction::triggered, [=]()
{
if (RemoveCustomPadConfiguration(currGame.serial, gameinfo, true))

View File

@ -60,12 +60,12 @@ pad_settings_dialog::pad_settings_dialog(QWidget *parent, const GameInfo *game)
{
m_title_id = game->serial;
g_cfg_input.load(game->serial);
setWindowTitle(tr("Gamepads Settings: [%0] %1").arg(qstr(game->serial)).arg(qstr(game->name).simplified()));
setWindowTitle(tr("Gamepad Settings: [%0] %1").arg(qstr(game->serial)).arg(qstr(game->name).simplified()));
}
else
{
g_cfg_input.load();
setWindowTitle(tr("Gamepads Settings"));
setWindowTitle(tr("Gamepad Settings"));
}
// Load tooltips

View File

@ -52,6 +52,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
if (game)
{
ui->tab_widget_settings->removeTab(8);
ui->buttonBox->button(QDialogButtonBox::StandardButton::Save)->setText(tr("Save custom configuration"));
}
// Add description labels