]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/property.cpp
correct typo in one of the last changes
[wxWidgets.git] / src / propgrid / property.cpp
index 53a26de39ffa726c53f994b3517d90bda3b28d03..addc80c0c20af351f4585859df050a027bfcde36 100644 (file)
@@ -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