Salome HOME
Property panel widgets redesign
[modules/shaper.git] / src / PartSet / PartSet_WidgetPoint2d.cpp
index 60b644e08275e0192a206554bc56506a3ea3cdb5..114a4b1eb6d98c26d83ce54e98164e06caa50937 100644 (file)
@@ -90,6 +90,10 @@ PartSet_WidgetPoint2D::PartSet_WidgetPoint2D(QWidget* theParent,
 
     connect(myYSpin, SIGNAL(valueChanged(double)), this, SLOT(onValuesChanged()));
   }
+  QVBoxLayout* aLayout = new QVBoxLayout(this);
+  ModuleBase_Tools::zeroMargins(aLayout);
+  aLayout->addWidget(myGroupBox);
+  setLayout(aLayout);
 }
 
 void PartSet_WidgetPoint2D::reset()
@@ -181,11 +185,6 @@ bool PartSet_WidgetPoint2D::restoreValue()
   return true;
 }
 
-QWidget* PartSet_WidgetPoint2D::getControl() const
-{
-  return myGroupBox;
-}
-
 QList<QWidget*> PartSet_WidgetPoint2D::getControls() const
 {
   QList<QWidget*> aControls;