Use setLabel when creating a wxStaticText under wxQT

This commit is contained in:
Graham Dawes
2019-07-17 08:22:47 +01:00
parent d3a3353a8d
commit 785103493c

View File

@@ -47,7 +47,7 @@ bool wxStaticText::Create(wxWindow *parent,
const wxString &name)
{
m_qtLabel = new wxQtStaticText( parent, this );
m_qtLabel->setText( wxQtConvertString( label ) );
SetLabel(label);
// Set the buddy to itself to get the mnemonic key but ensure that we don't have
// any unwanted side effects, so disable the interaction: