2019-07-17 18:15:25 +00:00
|
|
|
// Copyright 2019 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QSpinBox>
|
|
|
|
|
|
|
|
namespace Config
|
|
|
|
{
|
|
|
|
template <typename T>
|
2020-05-02 12:39:40 +00:00
|
|
|
struct Info;
|
2019-07-17 18:15:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class GraphicsInteger : public QSpinBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-05-02 12:39:40 +00:00
|
|
|
GraphicsInteger(int minimum, int maximum, const Config::Info<int>& setting, int step = 1);
|
2019-07-17 18:15:25 +00:00
|
|
|
void Update(int value);
|
|
|
|
|
|
|
|
private:
|
2020-05-02 12:39:40 +00:00
|
|
|
const Config::Info<int>& m_setting;
|
2019-07-17 18:15:25 +00:00
|
|
|
};
|