Rename wxGenericDirCtrl::ExpandDir() to PopulateNode().
This function doesn't really expand anything (unlike CollapseDir()) so give it a better name while keeping the old one too for compatibility. See #12735. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -788,7 +788,7 @@ void wxGenericDirCtrl::CollapseDir(wxTreeItemId parentId)
|
||||
m_treeCtrl->Thaw();
|
||||
}
|
||||
|
||||
void wxGenericDirCtrl::ExpandDir(wxTreeItemId parentId)
|
||||
void wxGenericDirCtrl::PopulateNode(wxTreeItemId parentId)
|
||||
{
|
||||
wxDirItemData *data = (wxDirItemData *) m_treeCtrl->GetItemData(parentId);
|
||||
|
||||
@@ -935,6 +935,12 @@ void wxGenericDirCtrl::ExpandDir(wxTreeItemId parentId)
|
||||
}
|
||||
}
|
||||
|
||||
void wxGenericDirCtrl::ExpandDir(wxTreeItemId parentId)
|
||||
{
|
||||
// ExpandDir() will not actually expand the tree node, just populate it
|
||||
PopulateNode(parentId);
|
||||
}
|
||||
|
||||
void wxGenericDirCtrl::ReCreateTree()
|
||||
{
|
||||
CollapseDir(m_treeCtrl->GetRootItem());
|
||||
|
Reference in New Issue
Block a user