21#ifndef SETTINGNOTIFIER_H
22#define SETTINGNOTIFIER_H
34 void sigValueChanged();
38 void addListener(T* c,
void (T::*fn)())
40 connect(
this, &AbstrSettingNotifier::sigValueChanged, c, fn);
43 void emit_value_changed();
46template<
typename KeyClass>
69 m->emit_value_changed();
73 void addListener(T* c,
void (T::*fn)())
75 m->addListener(c, fn);
82 template<
typename KeyClassInstance,
typename T>
85 listen(T* t,
void (T::*fn)(), bool run=true)
91 auto callable = std::bind(fn, t);
96 template<
typename KeyClassInstance>
Definition SettingNotifier.h:30
Definition SettingNotifier.h:48