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:
@@ -2163,7 +2163,10 @@ void wxPGProperty::AdaptListToValue( wxVariant& list, wxVariant* value ) const
|
||||
}
|
||||
|
||||
if ( allChildrenSpecified )
|
||||
ChildChanged(*value, i, childValue);
|
||||
{
|
||||
*value = ChildChanged(*value, i, childValue);
|
||||
}
|
||||
|
||||
n++;
|
||||
if ( n == (unsigned int)list.GetCount() )
|
||||
break;
|
||||
@@ -2365,10 +2368,11 @@ void wxPGProperty::DeleteChildren()
|
||||
}
|
||||
}
|
||||
|
||||
void wxPGProperty::ChildChanged( wxVariant& WXUNUSED(thisValue),
|
||||
int WXUNUSED(childIndex),
|
||||
wxVariant& WXUNUSED(childValue) ) const
|
||||
wxVariant wxPGProperty::ChildChanged( wxVariant& WXUNUSED(thisValue),
|
||||
int WXUNUSED(childIndex),
|
||||
wxVariant& WXUNUSED(childValue) ) const
|
||||
{
|
||||
return wxNullVariant;
|
||||
}
|
||||
|
||||
bool wxPGProperty::AreAllChildrenSpecified( wxVariant* pendingList ) const
|
||||
|
||||
Reference in New Issue
Block a user