]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #709: Avoid duplication of label
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 6 Jul 2015 08:16:59 +0000 (11:16 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 6 Jul 2015 08:16:59 +0000 (11:16 +0300)
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp
src/SketchPlugin/plugin-Sketch.xml

index 9b0222ca57ae21b818d7ed2f049b0ba00e6753ce..770882294fe6107bcdc1e6fe6784d140f12b5805 100644 (file)
@@ -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);
   }
 
index c822cf0d759c8f650cb8baaf8c3874437e54a6ce..016e331103cad064ba6e0624f4d772f279db39aa 100644 (file)
             <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">