aboutsummaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h9
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