Moved wxPropertyGrid::SetPropertyName() to wxPropertyGridInterface
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -448,6 +448,19 @@ wxPGProperty* wxPropertyGridPageState::BaseGetPropertyByName( const wxString& na
|
||||
return (wxPGProperty*) NULL;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGridPageState::DoSetPropertyName( wxPGProperty* p,
|
||||
const wxString& newName )
|
||||
{
|
||||
wxCHECK_RET( p, wxT("invalid property id") );
|
||||
|
||||
if ( p->GetBaseName().Len() ) m_dictName.erase( p->GetBaseName() );
|
||||
if ( newName.Len() ) m_dictName[newName] = (void*) p;
|
||||
|
||||
p->DoSetName(newName);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// wxPropertyGridPageState global operations
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user