summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <lat9nq@virginia.edu>2020-07-14 21:42:45 +0200
committerlat9nq <lat9nq@virginia.edu>2020-07-19 19:26:55 +0200
commit520b4c7829196cef45995764509fb5b1afe2eac7 (patch)
tree35ee6581f96f9b02b0de12ddb018e6b1b7ab963c
parentconfiguration: Use forward declares and remove extraneous structs (diff)
downloadyuzu-520b4c7829196cef45995764509fb5b1afe2eac7.tar
yuzu-520b4c7829196cef45995764509fb5b1afe2eac7.tar.gz
yuzu-520b4c7829196cef45995764509fb5b1afe2eac7.tar.bz2
yuzu-520b4c7829196cef45995764509fb5b1afe2eac7.tar.lz
yuzu-520b4c7829196cef45995764509fb5b1afe2eac7.tar.xz
yuzu-520b4c7829196cef45995764509fb5b1afe2eac7.tar.zst
yuzu-520b4c7829196cef45995764509fb5b1afe2eac7.zip
-rw-r--r--src/yuzu/configuration/configuration_shared.cpp16
-rw-r--r--src/yuzu/configuration/configuration_shared.h2
2 files changed, 0 insertions, 18 deletions
diff --git a/src/yuzu/configuration/configuration_shared.cpp b/src/yuzu/configuration/configuration_shared.cpp
index 30b6f7b28..f9becab6e 100644
--- a/src/yuzu/configuration/configuration_shared.cpp
+++ b/src/yuzu/configuration/configuration_shared.cpp
@@ -11,16 +11,6 @@
#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,
const QCheckBox* checkbox,
const CheckState& tracker) {
if (tracker == CheckState::Global) {
@@ -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) {
const QString use_global_text =
ConfigurePerGame::tr("Use global configuration (%1)").arg(combobox->itemText(global_index));
diff --git a/src/yuzu/configuration/configuration_shared.h b/src/yuzu/configuration/configuration_shared.h
index e9d765b94..003148c68 100644
--- a/src/yuzu/configuration/configuration_shared.h
+++ b/src/yuzu/configuration/configuration_shared.h
@@ -26,7 +26,6 @@ enum class CheckState {
void ApplyPerGameSetting(Settings::Setting<bool>* setting, const QCheckBox* checkbox,
const CheckState& tracker);
-void ApplyPerGameSetting(Settings::Setting<bool>* setting, const QCheckBox* checkbox);
void ApplyPerGameSetting(Settings::Setting<int>* setting, const QComboBox* combobox);
void ApplyPerGameSetting(Settings::Setting<Settings::RendererBackend>* setting,
const QComboBox* combobox);
@@ -48,7 +47,6 @@ void SetColoredTristate(QCheckBox* checkbox, const std::string& name, bool globa
void SetColoredComboBox(QComboBox* combobox, QWidget* target, const std::string& target_name,
int global);
-void InsertGlobalItem(QComboBox* combobox);
void InsertGlobalItem(QComboBox* combobox, int global_index);
} // namespace ConfigurationShared