Implement [GS]etLabel() for wxStaticText and wxCheckBox in wxQt

This allows the corresponding unit tests to pass.

Closes https://github.com/wxWidgets/wxWidgets/pull/1033
This commit is contained in:
Liam Treacy
2018-11-28 10:07:57 +00:00
committed by Vadim Zeitlin
parent 7e22ddd27c
commit 16c121d4d3
4 changed files with 21 additions and 1 deletions

View File

@@ -130,3 +130,14 @@ QWidget *wxCheckBox::GetHandle() const
{
return m_qtCheckBox;
}
wxString wxCheckBox::GetLabel() const
{
return wxQtConvertString( m_qtCheckBox->text() );
}
void wxCheckBox::SetLabel(const wxString& label)
{
m_qtCheckBox->setText( wxQtConvertString(label) );
}