From: sbh Date: Thu, 2 Oct 2014 15:06:45 +0000 (+0400) Subject: Within Issue #143 small corrections in sketch label's margins X-Git-Tag: V_0.5~119^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b387349b46c9051801052944c821f3cbc4b81204;p=modules%2Fshaper.git Within Issue #143 small corrections in sketch label's margins --- diff --git a/src/ModuleBase/ModuleBase_WidgetEditor.cpp b/src/ModuleBase/ModuleBase_WidgetEditor.cpp index 6f32c7606..ee5bc67f4 100644 --- a/src/ModuleBase/ModuleBase_WidgetEditor.cpp +++ b/src/ModuleBase/ModuleBase_WidgetEditor.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -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)); diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index bbcd7c177..0c4d5ccf5 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -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 PartSet_WidgetSketchLabel::getControls() const