You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
713 B

#include "settings.h"
Settings::Settings(QObject *parent, const QString &organization, const QString &application) :
QObject(parent), settings_(new QSettings(organization, application)) {
}
Settings::~Settings() {
delete settings_;
}
bool Settings::contains(const QString & key) const {
return settings_->contains(key);
}
void Settings::setValue(const QString &key, const QVariant &value) {
settings_->setValue(key, value);
}
QVariant Settings::value(const QString &key, const QVariant &defaultValue) const {
return settings_->value(key, defaultValue);
}
void Settings::setVersion(QString version) {
appVersion = version;
}
QString Settings::getVersion() {
return appVersion;
}