aboutsummaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
new file mode 100644
index 0000000..0122f8f
--- /dev/null
+++ b/src/settings.cpp
@@ -0,0 +1,18 @@
+#include "settings.h"
+
+QString Settings::_path = QString("");
+
+Settings::Settings(QObject *parent) :
+ QSettings(_path, QSettings::IniFormat, parent)
+{
+}
+
+Settings::~Settings()
+{
+ this->sync();
+}
+
+void Settings::setFilepath(const QString &path)
+{
+ _path = path;
+}