diff options
| author | Dentomologist <dentomologist@gmail.com> | 2023-04-14 14:16:23 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2023-04-19 16:58:42 -0700 |
| commit | 4174f0063e7ce05ae0eb2f49eed9de677bb46d28 (patch) | |
| tree | f49c6adc8d135f965552af202878a0fb17c1536c /Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp | |
| parent | 6d8cabac49b29578f729d765357ad84674547b40 (diff) | |
Qt: Remove unused class GraphicsBoolEx
In older versions of Dolphin GraphicsBoolEx was used to create a pair of
radio buttons selecting one of Virtual XFB and Real XFB, but this was
removed with the introduction of Hybrid XFB in 65cd085f.
In the meantime GraphicsRadioInt was introduced to allow for Graphics
radio buttons with multiple options, so GraphicsBoolEx is now redundant.
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp b/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp index ceb459c57a..7892714ec9 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp @@ -32,23 +32,3 @@ void GraphicsBool::Update() { Config::SetBaseOrCurrent(m_setting, static_cast<bool>(isChecked() ^ m_reverse)); } - -GraphicsBoolEx::GraphicsBoolEx(const QString& label, const Config::Info<bool>& setting, - bool reverse) - : ToolTipRadioButton(label), m_setting(setting), m_reverse(reverse) -{ - connect(this, &QCheckBox::toggled, this, &GraphicsBoolEx::Update); - setChecked(Config::Get(m_setting) ^ reverse); - - if (Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base) - { - QFont bf = font(); - bf.setBold(true); - setFont(bf); - } -} - -void GraphicsBoolEx::Update() -{ - Config::SetBaseOrCurrent(m_setting, static_cast<bool>(isChecked() ^ m_reverse)); -} |
