From b387349b46c9051801052944c821f3cbc4b81204 Mon Sep 17 00:00:00 2001 From: sbh Date: Thu, 2 Oct 2014 19:06:45 +0400 Subject: [PATCH] Within Issue #143 small corrections in sketch label's margins --- src/ModuleBase/ModuleBase_WidgetEditor.cpp | 3 ++- src/PartSet/PartSet_WidgetSketchLabel.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2