mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-24 18:44:52 +08:00
Implement Preferences::changed() signal.
This commit is contained in:
parent
458b216b74
commit
8e1698d563
@ -165,6 +165,8 @@ void Preferences::save() {
|
|||||||
#else
|
#else
|
||||||
delete settings;
|
delete settings;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
const QVariant Preferences::value(const QString &key, const QVariant &defaultValue) const {
|
const QVariant Preferences::value(const QString &key, const QVariant &defaultValue) const {
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
#ifndef PREFERENCES_H
|
#ifndef PREFERENCES_H
|
||||||
#define PREFERENCES_H
|
#define PREFERENCES_H
|
||||||
|
|
||||||
|
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
@ -70,6 +69,9 @@ private:
|
|||||||
const QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const;
|
const QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const;
|
||||||
void setValue(const QString &key, const QVariant &value);
|
void setValue(const QString &key, const QVariant &value);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void changed();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void save();
|
void save();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user