diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-11 15:36:14 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-11 15:36:14 +0100 |
commit | 59aff17b7ff1517dc74537444dc272f8080fad3f (patch) | |
tree | 2acf362513d6a518e1274e96b97aa8de91ea03a3 /src/settings.cpp | |
parent | Added URL positional argument (diff) | |
download | smolbote-59aff17b7ff1517dc74537444dc272f8080fad3f.tar.xz |
Window title bar gets updated
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 18 |
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; +} |