| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QLineEdit> |
| 7 |
|
| 8 |
#include "DolphinQt/Config/ConfigControls/ConfigControl.h" |
| 9 |
|
| 10 |
#include "Common/Config/ConfigInfo.h" |
| 11 |
|
| 12 |
class ConfigText : public ConfigControl<QLineEdit> |
| 13 |
{ |
| 14 |
Q_OBJECT |
| 15 |
public: |
| 16 |
ConfigText(const Config::Info<std::string>& setting); |
| 17 |
ConfigText(const Config::Info<std::string>& setting, Config::Layer* layer); |
| 18 |
|
| 19 |
void SetTextAndUpdate(const QString& text); |
| 20 |
|
| 21 |
protected: |
| 22 |
void OnConfigChanged() override; |
| 23 |
|
| 24 |
const Config::Info<std::string> m_setting; |
| 25 |
|
| 26 |
private: |
| 27 |
void Update(); |
| 28 |
}; |