]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp
Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetShapeSelector.cpp
index 36c1efd1a6db36668c5a789ae95eb3bf8e640b72..a5e09fea367af384b75ca16d969b2dc54d200216 100644 (file)
@@ -3,8 +3,9 @@
 // Author:      Vitaly Smetannikov
 
 #include "ModuleBase_WidgetShapeSelector.h"
-#include "ModuleBase_IWorkshop.h"
+#include <ModuleBase_IWorkshop.h>
 #include "ModuleBase_WidgetValue.h"
+#include <ModuleBase_Tools.h>
 #include "ModuleBase_WidgetValueFeature.h"
 
 #include <Events_Loop.h>
@@ -60,8 +61,8 @@ ModuleBase_WidgetShapeSelector::ModuleBase_WidgetShapeSelector(QWidget* theParen
 {
   myContainer = new QWidget(theParent);
   QHBoxLayout* aLayout = new QHBoxLayout(myContainer);
+  ModuleBase_Tools::adjustMargins(aLayout);
 
-  aLayout->setContentsMargins(0, 0, 0, 0);
   QString aLabelText = QString::fromStdString(theData->widgetLabel());
   QString aLabelIcon = QString::fromStdString(theData->widgetIcon());
   myLabel = new QLabel(aLabelText, myContainer);