#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); }