Implement Preferences::changed() signal.

This commit is contained in:
Vladimir Golovnev (Glassez) 2015-01-28 11:50:49 +03:00
parent 458b216b74
commit 8e1698d563
2 changed files with 5 additions and 1 deletions

View File

@ -165,6 +165,8 @@ void Preferences::save() {
#else
delete settings;
#endif
emit changed();
}
const QVariant Preferences::value(const QString &key, const QVariant &defaultValue) const {

View File

@ -33,7 +33,6 @@
#ifndef PREFERENCES_H
#define PREFERENCES_H
#include <QTime>
#include <QDateTime>
#include <QList>
@ -70,6 +69,9 @@ private:
const QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const;
void setValue(const QString &key, const QVariant &value);
signals:
void changed();
public slots:
void save();