diff options
author | lat9nq <lat9nq@virginia.edu> | 2020-07-13 19:22:41 -0400 |
---|---|---|
committer | lat9nq <lat9nq@virginia.edu> | 2020-07-19 13:26:55 -0400 |
commit | da65b92f9e9992413938bb084949367822b890c8 (patch) | |
tree | 4ed34575261a37458ba823f29324e8fa52631029 /src/yuzu/configuration/configuration_shared.h | |
parent | 5a9dc8f002c68e4af1fab9b7cfbd65e86ee2d110 (diff) |
configuration_shared: Require name of the widget for highlighting
Prevents mass-coloring of elements later on
Diffstat (limited to 'src/yuzu/configuration/configuration_shared.h')
-rw-r--r-- | src/yuzu/configuration/configuration_shared.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configuration_shared.h b/src/yuzu/configuration/configuration_shared.h index 88709446c..b2bd971c8 100644 --- a/src/yuzu/configuration/configuration_shared.h +++ b/src/yuzu/configuration/configuration_shared.h @@ -25,6 +25,8 @@ enum CheckState { struct Trackers { CheckState use_frame_limit; CheckState use_multi_core; + + CheckState enable_audio_stretching; } extern trackers; // Global-aware apply and set functions @@ -45,8 +47,8 @@ void SetPerGameSetting(QComboBox* combobox, void SetPerGameSetting(QComboBox* combobox, const Settings::Setting<Settings::GPUAccuracy>* setting); -void SetHighlight(QWidget* widget, bool highlighted); -void SetColoredTristate(QCheckBox* checkbox, Settings::Setting<bool>& setting, +void SetHighlight(QWidget* widget, const std::string& name, bool highlighted); +void SetColoredTristate(QCheckBox* checkbox, const std::string& name, const Settings::Setting<bool>& setting, ConfigurationShared::CheckState& tracker); void InsertGlobalItem(QComboBox* combobox); |