Improve layout of radioboxes in horizontal sizers with expand flag under wxQT
This commit is contained in:
@@ -178,11 +178,15 @@ bool wxRadioBox::Create(wxWindow *parent,
|
|||||||
|
|
||||||
AddChoices( m_qtButtonGroup, m_qtGridLayout, n, choices, style, majorDim );
|
AddChoices( m_qtButtonGroup, m_qtGridLayout, n, choices, style, majorDim );
|
||||||
|
|
||||||
QVBoxLayout *qtBoxLayout = new QVBoxLayout;
|
QVBoxLayout *vertLayout = new QVBoxLayout;
|
||||||
qtBoxLayout->addLayout(m_qtGridLayout);
|
vertLayout->addLayout(m_qtGridLayout);
|
||||||
qtBoxLayout->addStretch();
|
vertLayout->addStretch();
|
||||||
|
|
||||||
m_qtGroupBox->setLayout(qtBoxLayout);
|
QHBoxLayout *horzLayout = new QHBoxLayout;
|
||||||
|
horzLayout->addLayout(vertLayout);
|
||||||
|
horzLayout->addStretch();
|
||||||
|
|
||||||
|
m_qtGroupBox->setLayout(horzLayout);
|
||||||
|
|
||||||
return QtCreateControl( parent, id, pos, size, style, val, name );
|
return QtCreateControl( parent, id, pos, size, style, val, name );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user