Fixed various inconsistencies with deleting properties, added wxPGProperty::DeleteChildren()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2276,6 +2276,17 @@ void wxPGProperty::Empty()
|
||||
m_children.clear();
|
||||
}
|
||||
|
||||
void wxPGProperty::DeleteChildren()
|
||||
{
|
||||
wxPropertyGridPageState* state = m_parentState;
|
||||
|
||||
while ( GetChildCount() )
|
||||
{
|
||||
wxPGProperty* child = Item(GetChildCount()-1);
|
||||
state->DoDelete(child, true);
|
||||
}
|
||||
}
|
||||
|
||||
void wxPGProperty::ChildChanged( wxVariant& WXUNUSED(thisValue),
|
||||
int WXUNUSED(childIndex),
|
||||
wxVariant& WXUNUSED(childValue) ) const
|
||||
|
||||
Reference in New Issue
Block a user