diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-02-14 16:08:47 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-02-14 16:08:47 +0100 |
commit | afe44e984419f25fec0c3dfc5fc0f9800b205e2c (patch) | |
tree | 8f3bcdb029eca3367e9afbaa3455ab4ee61ca450 /src/settings.h | |
parent | Bookmark improvements (diff) | |
download | smolbote-afe44e984419f25fec0c3dfc5fc0f9800b205e2c.tar.xz |
Settings changes
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/settings.h b/src/settings.h index 7167aa1..f10cec7 100644 --- a/src/settings.h +++ b/src/settings.h @@ -22,16 +22,18 @@ #define SETTINGS_H #include <QSettings> - +#include <QRegularExpression> class Settings : public QSettings { Q_OBJECT public: explicit Settings(QObject *parent = 0); - ~Settings(); - static void setFilepath(const QString &path); + static void setFilePath(const QString &path); + + QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const; + //void setValue(const QString &key, const QVariant &value); signals: @@ -39,6 +41,7 @@ public slots: private: static QString _path; + const QRegularExpression referencePattern = QRegularExpression("~[\\w/]+~"); }; #endif // SETTINGS_H |