mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
refs #759 Allow cache value notification slot to be changed after construction.
Also allow slot to be any type of callable, including member function or lambda.
This commit is contained in:
committed by
Roland Winklmeier
parent
d24c17eba2
commit
e01ae2be11
@@ -270,9 +270,12 @@ namespace BlackMiscTest
|
||||
}
|
||||
|
||||
CValueCacheUser::CValueCacheUser(CValueCache *cache) :
|
||||
m_value1(cache, "value1", "", validator, 0, this, &CValueCacheUser::ps_valueChanged),
|
||||
m_value2(cache, "value2", "", validator, 0, this, &CValueCacheUser::ps_valueChanged)
|
||||
{}
|
||||
m_value1(cache, "value1", "", validator, 0, this),
|
||||
m_value2(cache, "value2", "", validator, 0, this)
|
||||
{
|
||||
m_value1.setNotifySlot(&CValueCacheUser::ps_valueChanged);
|
||||
m_value2.setNotifySlot(&CValueCacheUser::ps_valueChanged);
|
||||
}
|
||||
|
||||
void CValueCacheUser::ps_valueChanged()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user