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:
Marcus Tillmanns
2023-05-04 09:49:32 +02:00
parent 7724f8653f
commit 84b2862058

View File

@@ -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;
} }