Utils: Remove LabelPlacement::AtCheckBoxWithoutDummyLabel

This is identical in remaining functionality to AtCheckBox after
the recent layout builder changes (or rather, can be adjusted on
the layouting side by having appropriate empty cells)

Task-number: QTCREATORBUG-29167
Change-Id: Ic357de6fb756acb5926afe1fd361ee4b18b17afd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-05-23 17:49:52 +02:00
parent 0234ab6896
commit 75710fa369
10 changed files with 24 additions and 32 deletions

View File

@@ -1455,18 +1455,10 @@ void BoolAspect::addToLayout(Layouting::LayoutItem &parent)
d->m_button = createSubWidget<QCheckBox>();
}
switch (d->m_labelPlacement) {
case LabelPlacement::AtCheckBoxWithoutDummyLabel:
case LabelPlacement::AtCheckBox:
d->m_button->setText(labelText());
parent.addItem(d->m_button.data());
break;
case LabelPlacement::AtCheckBox: {
d->m_button->setText(labelText());
// FIXME:
//if (parent.isForm())
// parent.addItem(createSubWidget<QLabel>());
parent.addItem(d->m_button.data());
break;
}
case LabelPlacement::InExtraLabel:
addLabeledItem(parent, d->m_button);
break;