| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include "DolphinQt/Config/ConfigControls/ConfigControl.h" |
| 7 |
#include "DolphinQt/Config/ToolTipControls/ToolTipRadioButton.h" |
| 8 |
|
| 9 |
#include "Common/Config/ConfigInfo.h" |
| 10 |
|
| 11 |
class ConfigRadioInt final : public ConfigControl<ToolTipRadioButton> |
| 12 |
{ |
| 13 |
Q_OBJECT |
| 14 |
public: |
| 15 |
ConfigRadioInt(const QString& label, const Config::Info<int>& setting, int value, |
| 16 |
Config::Layer* layer = nullptr); |
| 17 |
|
| 18 |
signals: |
| 19 |
|
| 20 |
|
| 21 |
void OnSelected(int new_value); |
| 22 |
void OnDeselected(int old_value); |
| 23 |
|
| 24 |
protected: |
| 25 |
void OnConfigChanged() override; |
| 26 |
|
| 27 |
private: |
| 28 |
void Update(); |
| 29 |
|
| 30 |
const Config::Info<int> m_setting; |
| 31 |
int m_value; |
| 32 |
}; |