sorting support for generic version (patch 1765087 from Bo)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-08-03 11:47:42 +00:00
parent 2a225ba641
commit d3f00f5993
4 changed files with 58 additions and 6 deletions

View File

@@ -161,11 +161,11 @@ public:
{
MyMusicModelNode *node = (MyMusicModelNode*) item.GetID();
wxDataViewItem parent( node->GetParent() );
node->GetParent()->GetChildren().Remove( node );
delete node;
// notify control
ItemDeleted( parent, item );
node->GetParent()->GetChildren().Remove( node );
delete node;
}
// override sorting to always sort branches ascendingly