mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
57a1339cfb
GraphicsInteger is used by the panes in the Graphics config window to create spin boxes 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 ConfigInteger better reflects its purpose. This should also make it less confusing when ConfigIntegers are added to other config windows.
24 lines
454 B
C++
24 lines
454 B
C++
// Copyright 2019 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "DolphinQt/Config/ToolTipControls/ToolTipSpinBox.h"
|
|
|
|
namespace Config
|
|
{
|
|
template <typename T>
|
|
class Info;
|
|
}
|
|
|
|
class ConfigInteger : public ToolTipSpinBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ConfigInteger(int minimum, int maximum, const Config::Info<int>& setting, int step = 1);
|
|
void Update(int value);
|
|
|
|
private:
|
|
const Config::Info<int>& m_setting;
|
|
};
|