mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Qt/Core: implement max llvm compile threads
This commit is contained in:
parent
c8965564e4
commit
b9c10a186d
7 changed files with 34 additions and 19 deletions
|
@ -222,13 +222,15 @@ void emu_settings::SaveSettings()
|
|||
m_config.write(out.c_str(), out.size());
|
||||
}
|
||||
|
||||
void emu_settings::EnhanceComboBox(QComboBox* combobox, SettingsType type, bool is_ranged)
|
||||
void emu_settings::EnhanceComboBox(QComboBox* combobox, SettingsType type, bool is_ranged, bool use_max, int max)
|
||||
{
|
||||
if (is_ranged)
|
||||
{
|
||||
QStringList range = GetSettingOptions(type);
|
||||
|
||||
for (int i = range.first().toInt(); i <= range.last().toInt(); i++)
|
||||
int max_item = use_max ? max : range.last().toInt();
|
||||
|
||||
for (int i = range.first().toInt(); i <= max_item; i++)
|
||||
{
|
||||
combobox->addItem(QString::number(i), QVariant(QString::number(i)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue