enh(ui): emit SParameter-ish compatible signal from SPreferenceConfiguration
Description
SPreferenceConfiguration
should emit the same type of signal as in SParameter
, by doing this one can just implement a slot with key and value whatever the changes comes from preferences or SParameter
.
Proposal
Create a new signal in SPreferenceConfiguration
called preferenceChanged(ui::base::parameter_t, std::string)
.
Do not delete the other signal to keep backward compatibility for now.
Functional specifications
Nothing should change, except that a new signal will be triggered when a preference is changed.
Technical specifications
- emit at line 362 just before
m_sigParametersModified->asyncEmit();
the signal preferenceChanged with the key of the preference and its new value.
Test plan
- Connect a preference to a SParameter and see the change (from preference to SParameter).