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.
18 lines
487 B
18 lines
487 B
11 years ago
|
#include "settings.h"
|
||
|
|
||
|
Settings::Settings(QObject *parent, const QString &organization, const QString &application) :
|
||
|
QObject(parent), settings_(new QSettings(organization, application)) {
|
||
|
}
|
||
|
|
||
|
Settings::~Settings() {
|
||
|
delete settings_;
|
||
|
}
|
||
|
|
||
|
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);
|
||
|
}
|