Call base class in SetLabel for some widgets on wxQt.

This commit is contained in:
Alex Shvartzkop 2024-02-12 18:40:15 +03:00
parent afa4294ef1
commit 6aa928d624
3 changed files with 8 additions and 2 deletions

View file

@ -112,6 +112,8 @@ void wxAnyButton::QtSetBitmap( const wxBitmapBundle &bitmapBundle )
void wxAnyButton::SetLabel( const wxString &label )
{
wxAnyButtonBase::SetLabel( label );
m_qtPushButton->setText( wxQtConvertString( label ));
}

View file

@ -139,6 +139,8 @@ wxString wxCheckBox::GetLabel() const
void wxCheckBox::SetLabel(const wxString& label)
{
wxCheckBoxBase::SetLabel( label );
m_qtCheckBox->setText( wxQtConvertString(label) );
}

View file

@ -58,12 +58,14 @@ QWidget *wxStaticBox::GetHandle() const
void wxStaticBox::SetLabel(const wxString& label)
{
m_qtGroupBox->setTitle(wxQtConvertString(label));
wxStaticBoxBase::SetLabel( label );
m_qtGroupBox->setTitle( wxQtConvertString( label ) );
}
wxString wxStaticBox::GetLabel() const
{
return wxQtConvertString(m_qtGroupBox->title());
return wxQtConvertString( m_qtGroupBox->title() );
}
void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const