Debian Codegraph @

Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.h

raw symbols SCIP
1 // Copyright 2017 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include "DolphinQt/Config/ConfigControls/ConfigControl.h"
7 #include "DolphinQt/Config/ToolTipControls/ToolTipCheckBox.h"
8
9 #include "Common/Config/ConfigInfo.h"
10
11 class ConfigBool final : public ConfigControl<ToolTipCheckBox>
12 {
13 Q_OBJECT
14 public:
15 ConfigBool(const QString& label, const Config::Info<bool>& setting, bool reverse = false);
16 ConfigBool(const QString& label, const Config::Info<bool>& setting, Config::Layer* layer,
17 bool reverse = false);
18
19 protected:
20 void OnConfigChanged() override;
21
22 private:
23 void Update();
24
25 const Config::Info<bool> m_setting;
26 bool m_reverse;
27 };