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(isChecked() ^ m_reverse)); } - -GraphicsBoolEx::GraphicsBoolEx(const QString& label, const Config::Info& 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(isChecked() ^ m_reverse)); -} diff --git a/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.h b/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.h index c71bccfcd3..2a98971bfe 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.h +++ b/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.h @@ -4,7 +4,6 @@ #pragma once #include "DolphinQt/Config/ToolTipControls/ToolTipCheckBox.h" -#include "DolphinQt/Config/ToolTipControls/ToolTipRadioButton.h" namespace Config { @@ -24,16 +23,3 @@ private: const Config::Info& m_setting; bool m_reverse; }; - -class GraphicsBoolEx : public ToolTipRadioButton -{ - Q_OBJECT -public: - GraphicsBoolEx(const QString& label, const Config::Info& setting, bool reverse = false); - -private: - void Update(); - - const Config::Info& m_setting; - bool m_reverse; -};