aboutsummaryrefslogtreecommitdiff
path: root/src/settings.cpp
blob: 4dbc7c89a647587209a6ec0c5f44ca3e87feb117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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)
{
    qDebug("Setting config file location to: %s", qUtf8Printable(path));
    _path = path;
}