Closed rlux closed 10 years ago
Since signalzeug::Signal<> valueChanged
is a public member, you can just call property->valueChanged()
. But when you put this in the setter, the signal will called twice. Is this what you want?
If all properties have a valueChanged
, that's what I meant with this issue. It shouldn't be in the setter though. You would only call this when changing the value without using the setter.
This still doesn't update the GUI though, does it? That should probably be a different issue then, so we can close this one.
Updating the GUI is issued here: #15
Currently, a property is oblivious to direct changes of its data store, i.e. when the value is updated through other means besides calling the setter. In that case it might be useful to call a dataChanged method (or similar) on property telling it to update the GUI.