Reverted to old wxPG_AUTO_SORT behavior in which only root properties and immediate children of categories are (automatically) sorted; Added Sort flags; Applied slight optimization when sorting on propgridmanager page change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -762,7 +762,7 @@ bool wxPropertyGridInterface::Expand( wxPGPropArg id )
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGridInterface::Sort()
|
||||
void wxPropertyGridInterface::Sort( int flags )
|
||||
{
|
||||
wxPropertyGrid* pg = GetPropertyGrid();
|
||||
|
||||
@@ -774,7 +774,7 @@ void wxPropertyGridInterface::Sort()
|
||||
{
|
||||
wxPropertyGridPageState* page = GetPageState(pageIndex);
|
||||
if ( !page ) break;
|
||||
page->DoSort();
|
||||
page->DoSort(flags);
|
||||
pageIndex++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user