forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user