Implement wxStaticBox::Set/GetLabel() in wxQt
Closes https://github.com/wxWidgets/wxWidgets/pull/1167
This commit is contained in:
@@ -33,6 +33,9 @@ public:
|
|||||||
|
|
||||||
virtual QWidget *GetHandle() const;
|
virtual QWidget *GetHandle() const;
|
||||||
|
|
||||||
|
virtual void SetLabel(const wxString& label) wxOVERRIDE;
|
||||||
|
virtual wxString GetLabel() const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -56,6 +56,16 @@ QWidget *wxStaticBox::GetHandle() const
|
|||||||
return m_qtGroupBox;
|
return m_qtGroupBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxStaticBox::SetLabel(const wxString& label)
|
||||||
|
{
|
||||||
|
m_qtGroupBox->setTitle(wxQtConvertString(label));
|
||||||
|
}
|
||||||
|
|
||||||
|
wxString wxStaticBox::GetLabel() const
|
||||||
|
{
|
||||||
|
return wxQtConvertString(m_qtGroupBox->title());
|
||||||
|
}
|
||||||
|
|
||||||
void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
|
void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
|
||||||
{
|
{
|
||||||
wxStaticBoxBase::GetBordersForSizer(borderTop, borderOther);
|
wxStaticBoxBase::GetBordersForSizer(borderTop, borderOther);
|
||||||
|
Reference in New Issue
Block a user