diff options
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; +} |