#include <ModuleBase_WidgetEditor.h>
#include <ModuleBase_DoubleSpinBox.h>
+#include <ModuleBase_Tools.h>
#include <Config_Keywords.h>
#include <Config_WidgetAPI.h>
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));
myLabel->setWordWrap(true);
myTooltip = QString::fromStdString(theData->getProperty("tooltip"));
myLabel->setToolTip(myTooltip);
+ myLabel->setIndent(5);
}
QList<QWidget*> PartSet_WidgetSketchLabel::getControls() const