Rename wxStaticText::Do[SG]etLabel() to WX[SG]etVisibleLabel()
The names of these methods were confusing because they implied that they were the actual implementations of the public [SG]etLabel(), while this wasn't at all the case. Give them then ames describing what they really do and also update the comments to hopefully be more clear. No real changes.
This commit is contained in:
@@ -100,7 +100,7 @@ wxSize wxGenericStaticText::DoGetBestClientSize() const
|
||||
void wxGenericStaticText::SetLabel(const wxString& label)
|
||||
{
|
||||
wxControl::SetLabel(label);
|
||||
DoSetLabel(GetEllipsizedLabel());
|
||||
WXSetVisibleLabel(GetEllipsizedLabel());
|
||||
|
||||
AutoResizeIfNecessary();
|
||||
|
||||
@@ -115,7 +115,7 @@ void wxGenericStaticText::SetLabel(const wxString& label)
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void wxGenericStaticText::DoSetLabel(const wxString& label)
|
||||
void wxGenericStaticText::WXSetVisibleLabel(const wxString& label)
|
||||
{
|
||||
m_mnemonic = FindAccelIndex(label, &m_label);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user