configuration_shared: Require name of the widget for highlighting

Prevents mass-coloring of elements later on
This commit is contained in:
lat9nq
2020-07-13 19:22:41 -04:00
parent 5a9dc8f002
commit da65b92f9e
3 changed files with 27 additions and 16 deletions

View File

@ -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);