mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
5fa27704c8
GraphicsBool is used by the panes in the Graphics config window to create checkboxes that change their associated config setting, and update their own state when something else changes the config setting. Despite its current name nothing about this class is particular to the Graphics window, so renaming it to ConfigBool better reflects its purpose. This should also make it less confusing when ConfigBools are eventually added to the other config windows.
26 lines
466 B
C++
26 lines
466 B
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "DolphinQt/Config/ToolTipControls/ToolTipCheckBox.h"
|
|
|
|
namespace Config
|
|
{
|
|
template <typename T>
|
|
class Info;
|
|
}
|
|
|
|
class ConfigBool : public ToolTipCheckBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ConfigBool(const QString& label, const Config::Info<bool>& setting, bool reverse = false);
|
|
|
|
private:
|
|
void Update();
|
|
|
|
const Config::Info<bool>& m_setting;
|
|
bool m_reverse;
|
|
};
|