]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Within Issue #143 small corrections in sketch label's margins
authorsbh <sergey.belash@opencascade.com>
Thu, 2 Oct 2014 15:06:45 +0000 (19:06 +0400)
committersbh <sergey.belash@opencascade.com>
Thu, 2 Oct 2014 15:06:45 +0000 (19:06 +0400)
src/ModuleBase/ModuleBase_WidgetEditor.cpp
src/PartSet/PartSet_WidgetSketchLabel.cpp

index 6f32c7606bba64efe3d4c8b9685bd751c90e83d3..ee5bc67f476ba024490da025fc8dbea9f5f87b10 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <ModuleBase_WidgetEditor.h>
 #include <ModuleBase_DoubleSpinBox.h>
+#include <ModuleBase_Tools.h>
 
 #include <Config_Keywords.h>
 #include <Config_WidgetAPI.h>
@@ -40,7 +41,7 @@ double editedValue(double theValue, bool& isDone)
   QDialog aDlg;
   aDlg.setWindowFlags(Qt::FramelessWindowHint);
   QHBoxLayout* aLay = new QHBoxLayout(&aDlg);
-  aLay->setContentsMargins(0, 0, 0, 0);
+  ModuleBase_Tools::zeroMargins(aLay);
 
   QLineEdit* aEditor = new QLineEdit(QString::number(theValue), &aDlg);
   aEditor->setValidator(new QDoubleValidator(aEditor));
index bbcd7c177a1f5b8b154502fe6f73ee1c784cda6f..0c4d5ccf5e158772760f62ea28fe2f8197f0c8cd 100644 (file)
@@ -22,6 +22,7 @@ PartSet_WidgetSketchLabel::PartSet_WidgetSketchLabel(QWidget* theParent,
   myLabel->setWordWrap(true);
   myTooltip = QString::fromStdString(theData->getProperty("tooltip"));
   myLabel->setToolTip(myTooltip);
+  myLabel->setIndent(5);
 }
 
 QList<QWidget*> PartSet_WidgetSketchLabel::getControls() const