summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.h
blob: c71bccfcd322bbfb4dc79e05fbf9b912f4c30648 (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
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

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

namespace Config
{
template <typename T>
class Info;
}

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

private:
  void Update();

  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;
};