Browse Source

Implement Preferences::changed() signal.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 10 years ago
parent
commit
8e1698d563
  1. 2
      src/core/preferences.cpp
  2. 4
      src/core/preferences.h

2
src/core/preferences.cpp

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

4
src/core/preferences.h

@ -33,7 +33,6 @@ @@ -33,7 +33,6 @@
#ifndef PREFERENCES_H
#define PREFERENCES_H
#include <QTime>
#include <QDateTime>
#include <QList>
@ -70,6 +69,9 @@ private: @@ -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();

Loading…
Cancel
Save