RedPanda-CPP/RedPandaIDE/settings.h

28 lines
489 B
C
Raw Normal View History

#ifndef SETTINGS_H
#define SETTINGS_H
#include <QSettings>
#define EDITOR_DEFAULT_ENCODING "editor/default_encoding"
2021-04-09 17:48:25 +08:00
#define EDITOR_AUTO_INDENT "editor/default_auto_indent"
class Settings
{
public:
public:
Settings();
void setDefault(const QString &key, const QVariant &value);
void setValue(const QString &key, const QVariant &value);
QVariant value(const QString &key) const;
private:
QSettings mSettings;
};
extern Settings* pSettings;
#endif // SETTINGS_H