forked from qt-creator/qt-creator
Utils: Improve CheckBox layouting
This is not correct either, but the vast majority of Checkboxes is not added to Forms, so the !form case is a better fallback. Change-Id: I1375b3e23138fb6d881b2331ecf1d0f3a4f5431b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1406,8 +1406,9 @@ void BoolAspect::addToLayout(Layouting::LayoutItem &parent)
|
|||||||
break;
|
break;
|
||||||
case LabelPlacement::AtCheckBox: {
|
case LabelPlacement::AtCheckBox: {
|
||||||
d->m_checkBox->setText(labelText());
|
d->m_checkBox->setText(labelText());
|
||||||
// if (parent.isForm()) FIXME
|
// FIXME:
|
||||||
parent.addItem(createSubWidget<QLabel>());
|
//if (parent.isForm())
|
||||||
|
// parent.addItem(createSubWidget<QLabel>());
|
||||||
parent.addItem(d->m_checkBox.data());
|
parent.addItem(d->m_checkBox.data());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user