Add accelerator back to label in GetItemLabel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -796,7 +796,10 @@ wxString wxMenuItemBase::GetLabelText(const wxString& text)
|
|||||||
|
|
||||||
wxString wxMenuItem::GetItemLabel() const
|
wxString wxMenuItem::GetItemLabel() const
|
||||||
{
|
{
|
||||||
return wxConvertFromGTKToWXLabel(m_text);
|
wxString label = wxConvertFromGTKToWXLabel(m_text);
|
||||||
|
if (!m_hotKey.IsEmpty())
|
||||||
|
label = label + wxT("\t") + m_hotKey;
|
||||||
|
return label;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxMenuItem::SetItemLabel( const wxString& str )
|
void wxMenuItem::SetItemLabel( const wxString& str )
|
||||||
|
@@ -794,7 +794,10 @@ wxString wxMenuItemBase::GetLabelText(const wxString& text)
|
|||||||
|
|
||||||
wxString wxMenuItem::GetItemLabel() const
|
wxString wxMenuItem::GetItemLabel() const
|
||||||
{
|
{
|
||||||
return wxConvertFromGTKToWXLabel(m_text);
|
wxString label = wxConvertFromGTKToWXLabel(m_text);
|
||||||
|
if (!m_hotKey.IsEmpty())
|
||||||
|
label = label + wxT("\t") + m_hotKey;
|
||||||
|
return label;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxMenuItem::SetItemLabel( const wxString& string )
|
void wxMenuItem::SetItemLabel( const wxString& string )
|
||||||
|
Reference in New Issue
Block a user