Improve layout of wxRadioBox under wxQT

This commit is contained in:
Graham Dawes
2019-01-11 15:02:41 +00:00
parent 4f32cfc5fb
commit a823236ac1

View File

@@ -177,7 +177,12 @@ bool wxRadioBox::Create(wxWindow *parent,
m_qtGridLayout = new QGridLayout; m_qtGridLayout = new QGridLayout;
AddChoices( m_qtButtonGroup, m_qtGridLayout, n, choices, style, majorDim ); AddChoices( m_qtButtonGroup, m_qtGridLayout, n, choices, style, majorDim );
m_qtGroupBox->setLayout(m_qtGridLayout);
QVBoxLayout *qtBoxLayout = new QVBoxLayout;
qtBoxLayout->addLayout(m_qtGridLayout);
qtBoxLayout->addStretch();
m_qtGroupBox->setLayout(qtBoxLayout);
return QtCreateControl( parent, id, pos, size, style, val, name ); return QtCreateControl( parent, id, pos, size, style, val, name );
} }