mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12:00
Qt: minor cleanup
This commit is contained in:
parent
06d4505992
commit
e361bac945
6 changed files with 38 additions and 33 deletions
|
@ -93,7 +93,7 @@ namespace cfg_adapter
|
|||
}
|
||||
|
||||
/** Returns possible options for values for some particular setting.*/
|
||||
static QStringList getOptions(cfg_location location)
|
||||
static QStringList get_options(cfg_location location)
|
||||
{
|
||||
QStringList values;
|
||||
auto begin = location.cbegin();
|
||||
|
@ -212,7 +212,7 @@ void emu_settings::EnhanceComboBox(QComboBox* combobox, emu_settings_type type,
|
|||
|
||||
for (int i = range.first().toInt(); i <= max_item; i++)
|
||||
{
|
||||
combobox->addItem(QString::number(i), QVariant(QString::number(i)));
|
||||
combobox->addItem(QString::number(i), i);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -414,7 +414,7 @@ void emu_settings::EnhanceDoubleSpinBox(QDoubleSpinBox* spinbox, emu_settings_ty
|
|||
});
|
||||
}
|
||||
|
||||
void emu_settings::EnhanceEdit(QLineEdit* edit, emu_settings_type type)
|
||||
void emu_settings::EnhanceLineEdit(QLineEdit* edit, emu_settings_type type)
|
||||
{
|
||||
if (!edit)
|
||||
{
|
||||
|
@ -478,7 +478,7 @@ void emu_settings::SaveSelectedLibraries(const std::vector<std::string>& libs)
|
|||
|
||||
QStringList emu_settings::GetSettingOptions(emu_settings_type type) const
|
||||
{
|
||||
return getOptions(const_cast<cfg_location&&>(m_settings_location[type]));
|
||||
return get_options(const_cast<cfg_location&&>(m_settings_location[type]));
|
||||
}
|
||||
|
||||
std::string emu_settings::GetSettingName(emu_settings_type type) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue