2017-06-15 23:42:12 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QSlider>
|
|
|
|
|
|
|
|
namespace Config
|
|
|
|
{
|
|
|
|
template <typename T>
|
|
|
|
struct ConfigInfo;
|
2017-07-30 19:56:12 +00:00
|
|
|
}
|
2017-06-15 23:42:12 +00:00
|
|
|
|
|
|
|
class GraphicsSlider : public QSlider
|
|
|
|
{
|
2018-05-13 20:16:20 +00:00
|
|
|
Q_OBJECT
|
2017-06-15 23:42:12 +00:00
|
|
|
public:
|
|
|
|
GraphicsSlider(int minimum, int maximum, const Config::ConfigInfo<int>& setting, int tick = 0);
|
|
|
|
void Update(int value);
|
|
|
|
|
|
|
|
private:
|
|
|
|
const Config::ConfigInfo<int>& m_setting;
|
|
|
|
};
|