projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapt chatview and nickview to join-and-switch
[quassel.git]
/
src
/
common
/
settings.h
diff --git
a/src/common/settings.h
b/src/common/settings.h
index
6474353
..
e2920c2
100644
(file)
--- a/
src/common/settings.h
+++ b/
src/common/settings.h
@@
-44,7
+44,12
@@
public:
enum Mode { Default, Custom };
public:
enum Mode { Default, Custom };
public:
+ //! Call the given slot on change of the given key
virtual void notify(const QString &key, QObject *receiver, const char *slot);
virtual void notify(const QString &key, QObject *receiver, const char *slot);
+
+ //! Sets up notification and calls the given slot to set the initial value
+ void initAndNotify(const QString &key, QObject *receiver, const char *slot, const QVariant &defaultValue = QVariant());
+
virtual uint version();
protected:
virtual uint version();
protected: