mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 01:35:46 +00:00
settings: Define base renderer runtime modifiable settings
This commit is contained in:
parent
2760998b49
commit
cc4dbb8c8c
2 changed files with 27 additions and 25 deletions
|
@ -92,10 +92,11 @@ void SetPerGameSetting(QComboBox* combobox,
|
|||
void SetHighlight(QWidget* widget, bool highlighted);
|
||||
|
||||
// Sets up a QCheckBox like a tristate one, given a Setting
|
||||
template <bool ranged, bool save>
|
||||
void SetColoredTristate(QCheckBox* checkbox,
|
||||
const Settings::SwitchableSetting<bool, ranged, save>& setting,
|
||||
CheckState& tracker) {
|
||||
template <bool ranged, bool save, bool runtime_modifiable>
|
||||
void SetColoredTristate(
|
||||
QCheckBox* checkbox,
|
||||
const Settings::SwitchableSetting<bool, ranged, save, runtime_modifiable>& setting,
|
||||
CheckState& tracker) {
|
||||
if (setting.UsingGlobal()) {
|
||||
tracker = CheckState::Global;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue