diff options
| author | TryTwo <taolas@gmail.com> | 2024-09-17 23:29:13 -0700 |
|---|---|---|
| committer | TryTwo <taolas@gmail.com> | 2024-12-10 13:40:30 -0700 |
| commit | 84a937ae651aa5296535e8feffe47aa1f2b219ab (patch) | |
| tree | 7c875fc5a8725bd7a81a772854204d546edc23ae /Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.cpp | |
| parent | 08df9a66e03acb614dca6d1c118818f84f1cbcfd (diff) | |
Add GFX property tabs to game properties window, allowing them to be set to the user game ini. Additionally, refactor ConfigWidgets to reduce duplication. Refactor GameConfigWidget to use config system.
Creates a layer outside the game config layer system and passes it to the created gfx widows, so as to not interfere with the global config system.
Supports multiple game properties being open at once.
Supports editing while a game is playing, but the options only save and update the active game when the window is closed.
Right-clicking will remove a property from the game ini.
Diffstat (limited to 'Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.cpp b/Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.cpp index 0f99284297..4fad525e6f 100644 --- a/Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.cpp +++ b/Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.cpp @@ -4,7 +4,13 @@ #include "DolphinQt/Config/ConfigControls/ConfigBool.h" ConfigBool::ConfigBool(const QString& label, const Config::Info<bool>& setting, bool reverse) - : ConfigControl(label, setting.GetLocation()), m_setting(setting), m_reverse(reverse) + : ConfigBool(label, setting, nullptr, reverse) +{ +} + +ConfigBool::ConfigBool(const QString& label, const Config::Info<bool>& setting, + Config::Layer* layer, bool reverse) + : ConfigControl(label, setting.GetLocation(), layer), m_setting(setting), m_reverse(reverse) { setChecked(ReadValue(setting) ^ reverse); |
