Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11776 from Dentomologist/remove_graphicsboolex
Qt: Remove unused class GraphicsBoolEx
  • Loading branch information
lioncash committed Apr 20, 2023
2 parents 6d8caba + 4174f00 commit e0d6b46
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
20 changes: 0 additions & 20 deletions Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp
Expand Up @@ -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));
}
14 changes: 0 additions & 14 deletions Source/Core/DolphinQt/Config/Graphics/GraphicsBool.h
Expand Up @@ -4,7 +4,6 @@
#pragma once

#include "DolphinQt/Config/ToolTipControls/ToolTipCheckBox.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipRadioButton.h"

namespace Config
{
Expand All @@ -24,16 +23,3 @@ class GraphicsBool : public ToolTipCheckBox
const Config::Info<bool>& m_setting;
bool m_reverse;
};

class GraphicsBoolEx : public ToolTipRadioButton
{
Q_OBJECT
public:
GraphicsBoolEx(const QString& label, const Config::Info<bool>& setting, bool reverse = false);

private:
void Update();

const Config::Info<bool>& m_setting;
bool m_reverse;
};

0 comments on commit e0d6b46

Please sign in to comment.