Implementations of wxPGProperty::ChildChanged() must now return changed value of the whole property instead of writing it back to 'thisValue' argument. This change was done primarily for better compatibility with wxPython bindings, but should also be slightly more cleaner behavior API-wise. Breaks backwards compatibility, but not silently.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -711,7 +711,9 @@ void wxFontProperty::RefreshChildren()
|
||||
Item(5)->SetValue( font.GetUnderlined() );
|
||||
}
|
||||
|
||||
void wxFontProperty::ChildChanged( wxVariant& thisValue, int ind, wxVariant& childValue ) const
|
||||
wxVariant wxFontProperty::ChildChanged( wxVariant& thisValue,
|
||||
int ind,
|
||||
wxVariant& childValue ) const
|
||||
{
|
||||
wxFont font;
|
||||
font << thisValue;
|
||||
@@ -761,7 +763,9 @@ void wxFontProperty::ChildChanged( wxVariant& thisValue, int ind, wxVariant& chi
|
||||
font.SetUnderlined( childValue.GetBool() );
|
||||
}
|
||||
|
||||
thisValue << font;
|
||||
wxVariant newVariant;
|
||||
newVariant << font;
|
||||
return newVariant;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user