Files
dolphin/Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
703 B
C++
Raw Normal View History

2017-06-16 01:42:12 +02:00
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2017-06-16 01:42:12 +02:00
#pragma once
#include "DolphinQt/Config/ConfigControls/ConfigControl.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipCheckBox.h"
2017-06-16 01:42:12 +02:00
#include "Common/Config/ConfigInfo.h"
2017-06-16 01:42:12 +02:00
class ConfigBool final : public ConfigControl<ToolTipCheckBox>
2017-06-16 01:42:12 +02:00
{
Q_OBJECT
public:
2023-04-21 14:02:53 -07:00
ConfigBool(const QString& label, const Config::Info<bool>& setting, bool reverse = false);
ConfigBool(const QString& label, const Config::Info<bool>& setting, Config::Layer* layer,
bool reverse = false);
2017-06-16 01:42:12 +02:00
protected:
void OnConfigChanged() override;
2017-06-16 01:42:12 +02:00
private:
void Update();
const Config::Info<bool> m_setting;
2017-06-16 01:42:12 +02:00
bool m_reverse;
};