Use setLabel when creating a wxStaticText under wxQT
This commit is contained in:
@@ -47,7 +47,7 @@ bool wxStaticText::Create(wxWindow *parent,
|
|||||||
const wxString &name)
|
const wxString &name)
|
||||||
{
|
{
|
||||||
m_qtLabel = new wxQtStaticText( parent, this );
|
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
|
// 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:
|
// any unwanted side effects, so disable the interaction:
|
||||||
|
Reference in New Issue
Block a user