settings: Define base renderer runtime modifiable settings

This commit is contained in:
lat9nq 2023-05-08 10:03:40 -04:00
parent 2760998b49
commit cc4dbb8c8c
2 changed files with 27 additions and 25 deletions

View file

@ -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 {