mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 19:15:46 +00:00
configuration_shared: Make CheckState strongly typed
Also gets rid of unnecessary explicit namespace usage.
This commit is contained in:
parent
55ac28769a
commit
335aef78c4
2 changed files with 23 additions and 24 deletions
|
@ -15,7 +15,7 @@ constexpr int USE_GLOBAL_INDEX = 0;
|
|||
constexpr int USE_GLOBAL_SEPARATOR_INDEX = 1;
|
||||
constexpr int USE_GLOBAL_OFFSET = 2;
|
||||
|
||||
enum CheckState {
|
||||
enum class CheckState {
|
||||
Off,
|
||||
On,
|
||||
Global,
|
||||
|
@ -42,10 +42,9 @@ void SetPerGameSetting(QComboBox* combobox,
|
|||
|
||||
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);
|
||||
const Settings::Setting<bool>& setting, CheckState& tracker);
|
||||
void SetColoredTristate(QCheckBox* checkbox, const std::string& name, bool global, bool state,
|
||||
bool global_state, ConfigurationShared::CheckState& tracker);
|
||||
bool global_state, CheckState& tracker);
|
||||
void SetColoredComboBox(QComboBox* combobox, QWidget* target, const std::string& target_name,
|
||||
int global);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue