Code: Select all
<PropertyDefinition name="HorzFormatting" initialValue="Stretched" redrawOnWrite="true" type="HorizontalFormatting"/>
and Window::isPropertyAtDefault() detects it at
Code: Select all
// If this property is a target of a PropertyLink, we always report it as being at default.
WidgetLookFeel::StringSet propDefNames = wlf.getPropertyDefinitionNames(true);
if(propDefNames.find(property->getName()) != propDefNames.end())
return true;
and says that HorzFormatting is at its default value, no matter what value is. HorzFormatting doesn't get saved and changes are lost.
Does anyoune know why it works this way and can it be fixed?