yuzu/configuration: Make function naming consistent
This commit is contained in:
parent
1eb979221f
commit
e1d755bdda
33 changed files with 234 additions and 213 deletions
|
@ -12,20 +12,20 @@
|
|||
#include "yuzu/ui_settings.h"
|
||||
|
||||
namespace {
|
||||
constexpr std::array<std::pair<u32, const char*>, 5> default_icon_sizes{{
|
||||
constexpr std::array default_icon_sizes{
|
||||
std::make_pair(0, QT_TR_NOOP("None")),
|
||||
std::make_pair(32, QT_TR_NOOP("Small (32x32)")),
|
||||
std::make_pair(64, QT_TR_NOOP("Standard (64x64)")),
|
||||
std::make_pair(128, QT_TR_NOOP("Large (128x128)")),
|
||||
std::make_pair(256, QT_TR_NOOP("Full Size (256x256)")),
|
||||
}};
|
||||
};
|
||||
|
||||
constexpr std::array<const char*, 4> row_text_names{{
|
||||
constexpr std::array row_text_names{
|
||||
QT_TR_NOOP("Filename"),
|
||||
QT_TR_NOOP("Filetype"),
|
||||
QT_TR_NOOP("Title ID"),
|
||||
QT_TR_NOOP("Title Name"),
|
||||
}};
|
||||
};
|
||||
} // Anonymous namespace
|
||||
|
||||
ConfigureGameList::ConfigureGameList(QWidget* parent)
|
||||
|
@ -35,7 +35,7 @@ ConfigureGameList::ConfigureGameList(QWidget* parent)
|
|||
InitializeIconSizeComboBox();
|
||||
InitializeRowComboBoxes();
|
||||
|
||||
this->setConfiguration();
|
||||
SetConfiguration();
|
||||
|
||||
// Force game list reload if any of the relevant settings are changed.
|
||||
connect(ui->show_unknown, &QCheckBox::stateChanged, this,
|
||||
|
@ -50,7 +50,7 @@ ConfigureGameList::ConfigureGameList(QWidget* parent)
|
|||
|
||||
ConfigureGameList::~ConfigureGameList() = default;
|
||||
|
||||
void ConfigureGameList::applyConfiguration() {
|
||||
void ConfigureGameList::ApplyConfiguration() {
|
||||
UISettings::values.show_unknown = ui->show_unknown->isChecked();
|
||||
UISettings::values.show_add_ons = ui->show_add_ons->isChecked();
|
||||
UISettings::values.icon_size = ui->icon_size_combobox->currentData().toUInt();
|
||||
|
@ -63,7 +63,7 @@ void ConfigureGameList::RequestGameListUpdate() {
|
|||
UISettings::values.is_game_list_reload_pending.exchange(true);
|
||||
}
|
||||
|
||||
void ConfigureGameList::setConfiguration() {
|
||||
void ConfigureGameList::SetConfiguration() {
|
||||
ui->show_unknown->setChecked(UISettings::values.show_unknown);
|
||||
ui->show_add_ons->setChecked(UISettings::values.show_add_ons);
|
||||
ui->icon_size_combobox->setCurrentIndex(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue