mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
a7abd7dba0
GraphicsRadioInt is used by the panes in the Graphics config window to create radio buttons 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 ConfigRadioInt better reflects its purpose. This should also make it less confusing when ConfigRadioInts are added to other config panes.
22 lines
436 B
C++
22 lines
436 B
C++
// Copyright 2018 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "DolphinQt/Config/ToolTipControls/ToolTipRadioButton.h"
|
|
|
|
#include "Common/Config/Config.h"
|
|
|
|
class ConfigRadioInt : public ToolTipRadioButton
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ConfigRadioInt(const QString& label, const Config::Info<int>& setting, int value);
|
|
|
|
private:
|
|
void Update();
|
|
|
|
Config::Info<int> m_setting;
|
|
int m_value;
|
|
};
|