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:
@@ -77,15 +77,15 @@ void wxStaticText::SetLabel(const wxString& str)
|
||||
m_labelOrig = str;
|
||||
|
||||
// draw as real label the abbreviated version of it
|
||||
DoSetLabel(GetEllipsizedLabel());
|
||||
WXSetVisibleLabel(GetEllipsizedLabel());
|
||||
}
|
||||
|
||||
void wxStaticText::DoSetLabel(const wxString& str)
|
||||
void wxStaticText::WXSetVisibleLabel(const wxString& str)
|
||||
{
|
||||
UnivDoSetLabel(str);
|
||||
}
|
||||
|
||||
wxString wxStaticText::DoGetLabel() const
|
||||
wxString wxStaticText::WXGetVisibleLabel() const
|
||||
{
|
||||
return wxControl::GetLabel();
|
||||
}
|
||||
|
Reference in New Issue
Block a user