aMainLay->addWidget(aListLabel, 1, 0);
// if the xml definition contains one type, an information label should be shown near to the latest
if (aShapeTypes.size() == 1) {
- QString aLabelText = QString::fromStdString(theData->widgetLabel());
QString aLabelIcon = QString::fromStdString(theData->widgetIcon());
- QLabel* aSelectedLabel = new QLabel(aLabelText, this);
- if (!aLabelIcon.isEmpty())
+ if (!aLabelIcon.isEmpty()) {
+ QLabel* aSelectedLabel = new QLabel("", this);
aSelectedLabel->setPixmap(QPixmap(aLabelIcon));
- aMainLay->addWidget(aSelectedLabel, 1, 1);
+ aMainLay->addWidget(aSelectedLabel, 1, 1);
+ }
aMainLay->setColumnStretch(2, 1);
}
<validator id="GeomValidators_ShapeType" parameters="line"/>
</sketch_shape_selector>
<sketch_multi_selector id="ConstraintMirrorList"
- label="segments"
+ label="Segments:"
tooltip="Select list of mirroring objects"
type_choice="Edges"
use_external="true">
title="Translation" icon=":icons/translate.png"
tooltip="Translation">
<sketch_multi_selector id="MultiTranslationList"
- label="segments"
+ label="Segments:"
tooltip="Select list of translating objects"
type_choice="Edges"
use_external="true">
title="Rotation" icon=":icons/rotate.png"
tooltip="Rotation">
<sketch_multi_selector id="MultiRotationList"
- label="segments"
+ label="Segments:"
tooltip="Select list of rotating objects"
type_choice="Edges"
use_external="true">