|
|
@ -10,16 +10,6 @@
|
|
|
|
#include "yuzu/configuration/configuration_shared.h"
|
|
|
|
#include "yuzu/configuration/configuration_shared.h"
|
|
|
|
#include "yuzu/configuration/configure_per_game.h"
|
|
|
|
#include "yuzu/configuration/configure_per_game.h"
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigurationShared::ApplyPerGameSetting(Settings::Setting<bool>* setting,
|
|
|
|
|
|
|
|
const QCheckBox* checkbox) {
|
|
|
|
|
|
|
|
if (checkbox->checkState() == Qt::PartiallyChecked) {
|
|
|
|
|
|
|
|
setting->SetGlobal(true);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
setting->SetGlobal(false);
|
|
|
|
|
|
|
|
setting->SetValue(checkbox->checkState() == Qt::Checked);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigurationShared::ApplyPerGameSetting(Settings::Setting<bool>* setting,
|
|
|
|
void ConfigurationShared::ApplyPerGameSetting(Settings::Setting<bool>* setting,
|
|
|
|
const QCheckBox* checkbox,
|
|
|
|
const QCheckBox* checkbox,
|
|
|
|
const CheckState& tracker) {
|
|
|
|
const CheckState& tracker) {
|
|
|
@ -142,12 +132,6 @@ void ConfigurationShared::SetColoredComboBox(QComboBox* combobox, QWidget* targe
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigurationShared::InsertGlobalItem(QComboBox* combobox) {
|
|
|
|
|
|
|
|
const QString use_global_text = ConfigurePerGame::tr("Use global configuration");
|
|
|
|
|
|
|
|
combobox->insertItem(ConfigurationShared::USE_GLOBAL_INDEX, use_global_text);
|
|
|
|
|
|
|
|
combobox->insertSeparator(ConfigurationShared::USE_GLOBAL_SEPARATOR_INDEX);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigurationShared::InsertGlobalItem(QComboBox* combobox, int global_index) {
|
|
|
|
void ConfigurationShared::InsertGlobalItem(QComboBox* combobox, int global_index) {
|
|
|
|
const QString use_global_text =
|
|
|
|
const QString use_global_text =
|
|
|
|
ConfigurePerGame::tr("Use global configuration (%1)").arg(combobox->itemText(global_index));
|
|
|
|
ConfigurePerGame::tr("Use global configuration (%1)").arg(combobox->itemText(global_index));
|
|
|
|