mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-02 11:15:35 +00:00
37 lines
827 B
C++
37 lines
827 B
C++
|
#ifndef CSM_PREFS_StringSetting_H
|
||
|
#define CSM_PREFS_StringSetting_H
|
||
|
|
||
|
#include "setting.hpp"
|
||
|
|
||
|
class QTextEdit;
|
||
|
|
||
|
namespace CSMPrefs
|
||
|
{
|
||
|
class StringSetting : public Setting
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
std::string mTooltip;
|
||
|
std::string mDefault;
|
||
|
QTextEdit* mWidget;
|
||
|
|
||
|
public:
|
||
|
|
||
|
StringSetting (Category *parent, Settings::Manager *values,
|
||
|
QMutex *mutex, const std::string& key, const std::string& label, std::string default_);
|
||
|
|
||
|
StringSetting& setTooltip (const std::string& tooltip);
|
||
|
|
||
|
/// Return label, input widget.
|
||
|
std::pair<QWidget *, QWidget *> makeWidgets (QWidget *parent) override;
|
||
|
|
||
|
void updateWidget() override;
|
||
|
|
||
|
private slots:
|
||
|
|
||
|
void textChanged (std::string text);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|