From: vsv Date: Mon, 6 Jul 2015 08:16:59 +0000 (+0300) Subject: Issue #709: Avoid duplication of label X-Git-Tag: V_1.3.0~107 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dd2e829e875d23e73e917b250524385a84943839;p=modules%2Fshaper.git Issue #709: Avoid duplication of label --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 9b0222ca5..770882294 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -73,12 +73,12 @@ ModuleBase_WidgetMultiSelector::ModuleBase_WidgetMultiSelector(QWidget* theParen 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); } diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index c822cf0d7..016e33110 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -248,7 +248,7 @@ @@ -261,7 +261,7 @@ title="Translation" icon=":icons/translate.png" tooltip="Translation"> @@ -290,7 +290,7 @@ title="Rotation" icon=":icons/rotate.png" tooltip="Rotation">