]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #622: Replace icons X an Y by text labels
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 7 Jul 2015 12:37:08 +0000 (15:37 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 7 Jul 2015 12:37:29 +0000 (15:37 +0300)
src/ConstructionPlugin/point_widget.xml
src/PartSet/PartSet_WidgetPoint2d.cpp

index b691a0ae2db75dd12e97fb5619652e6dc1f748fa..1452154fa325f0f0dcce2d2d15a22f9eacd39e1f 100644 (file)
@@ -1,7 +1,7 @@
 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
 
 <source>
-  <doublevalue id="x" label="X:" icon=":pictures/x_point.png" tooltip="X coordinate" default="0"/>
-  <doublevalue id="y" label="Y:" icon=":pictures/y_point.png" tooltip="Y coordinate" default="0"/>
-  <doublevalue id="z" label="Z:" icon=":pictures/z_point.png" tooltip="Z coordinate" default="0"/>
+  <doublevalue id="x" label="X:" tooltip="X coordinate" default="0"/>
+  <doublevalue id="y" label="Y:" tooltip="Y coordinate" default="0"/>
+  <doublevalue id="z" label="Z:" tooltip="Z coordinate" default="0"/>
 </source>
index 977e890a3cca4a9248e35eb0461efcb35ace0a97..7bbb8545b1013cb0c3e45983f4c827fd5a08b5ab 100644 (file)
@@ -64,11 +64,11 @@ PartSet_WidgetPoint2D::PartSet_WidgetPoint2D(QWidget* theParent,
 
   QGridLayout* aGroupLay = new QGridLayout(myGroupBox);
   ModuleBase_Tools::adjustMargins(aGroupLay);
+  aGroupLay->setSpacing(2);
   aGroupLay->setColumnStretch(1, 1);
   {
     QLabel* aLabel = new QLabel(myGroupBox);
-    aLabel->setText(tr("X"));
-    aLabel->setPixmap(QPixmap(":pictures/x_point.png"));
+    aLabel->setText(tr("X:"));
     aGroupLay->addWidget(aLabel, 0, 0);
 
     myXSpin = new ModuleBase_ParamSpinBox(myGroupBox);
@@ -81,8 +81,7 @@ PartSet_WidgetPoint2D::PartSet_WidgetPoint2D(QWidget* theParent,
   }
   {
     QLabel* aLabel = new QLabel(myGroupBox);
-    aLabel->setText(tr("Y"));
-    aLabel->setPixmap(QPixmap(":pictures/y_point.png"));
+    aLabel->setText(tr("Y:"));
     aGroupLay->addWidget(aLabel, 1, 0);
 
     myYSpin = new ModuleBase_ParamSpinBox(myGroupBox);