Call base class in SetLabel for some widgets on wxQt.
This commit is contained in:
parent
afa4294ef1
commit
6aa928d624
3 changed files with 8 additions and 2 deletions
|
|
@ -112,6 +112,8 @@ void wxAnyButton::QtSetBitmap( const wxBitmapBundle &bitmapBundle )
|
|||
|
||||
void wxAnyButton::SetLabel( const wxString &label )
|
||||
{
|
||||
wxAnyButtonBase::SetLabel( label );
|
||||
|
||||
m_qtPushButton->setText( wxQtConvertString( label ));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -139,6 +139,8 @@ wxString wxCheckBox::GetLabel() const
|
|||
|
||||
void wxCheckBox::SetLabel(const wxString& label)
|
||||
{
|
||||
wxCheckBoxBase::SetLabel( label );
|
||||
|
||||
m_qtCheckBox->setText( wxQtConvertString(label) );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue