2017-06-15 23:42:12 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-15 23:42:12 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-10-17 05:05:43 +00:00
|
|
|
#include "DolphinQt/Config/ToolTipControls/ToolTipSlider.h"
|
2017-06-15 23:42:12 +00:00
|
|
|
|
|
|
|
namespace Config
|
|
|
|
{
|
|
|
|
template <typename T>
|
2020-09-20 11:58:17 +00:00
|
|
|
class Info;
|
2017-07-30 19:56:12 +00:00
|
|
|
}
|
2017-06-15 23:42:12 +00:00
|
|
|
|
2023-04-29 03:11:55 +00:00
|
|
|
class ConfigSlider : public ToolTipSlider
|
2017-06-15 23:42:12 +00:00
|
|
|
{
|
2018-05-13 20:16:20 +00:00
|
|
|
Q_OBJECT
|
2017-06-15 23:42:12 +00:00
|
|
|
public:
|
2023-04-29 03:11:55 +00:00
|
|
|
ConfigSlider(int minimum, int maximum, const Config::Info<int>& setting, int tick = 0);
|
2017-06-15 23:42:12 +00:00
|
|
|
void Update(int value);
|
|
|
|
|
|
|
|
private:
|
2020-05-02 12:39:40 +00:00
|
|
|
const Config::Info<int>& m_setting;
|
2017-06-15 23:42:12 +00:00
|
|
|
};
|