summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.h
blob: d79757d28e27d3849e96f865a51405a408275318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 2017 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#include <QCheckBox>
#include <QRadioButton>

namespace Config
{
template <typename T>
struct ConfigInfo;
}

class GraphicsBool : public QCheckBox
{
  Q_OBJECT
public:
  GraphicsBool(const QString& label, const Config::ConfigInfo<bool>& setting, bool reverse = false);

private:
  void Update();

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

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

private:
  void Update();

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