aboutsummaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-01-11 15:36:14 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-01-11 15:36:14 +0100
commit59aff17b7ff1517dc74537444dc272f8080fad3f (patch)
tree2acf362513d6a518e1274e96b97aa8de91ea03a3 /src/settings.cpp
parentAdded URL positional argument (diff)
downloadsmolbote-59aff17b7ff1517dc74537444dc272f8080fad3f.tar.xz
Window title bar gets updated
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;
+}