Salome HOME
It removes unnecessary margin.
[modules/hydro.git] / src / HYDROCurveCreator / CurveCreator_NewSectionDlg.cxx
index aa7d0a78ea75d08c7fbdca01139a5926d3b92018..51d7b26b6229107ee62746596839e20f141f9d76 100644 (file)
 #include <QPushButton>
 
 CurveCreator_NewSectionDlg::CurveCreator_NewSectionDlg( QWidget *parent, bool enableClosed ) :
-  QWidget(parent)
+  QWidget(parent), myIsEnableClosed( enableClosed )
 {
   QFrame* aFrame = new QFrame( this );
   QVBoxLayout* aLayout = new QVBoxLayout( aFrame );
+  aLayout->setMargin( 0 );
 
   QFrame* aCoordFrame = new QFrame( aFrame );
   QGridLayout* aCoordLayout = new QGridLayout( aCoordFrame );
@@ -64,7 +65,7 @@ CurveCreator_NewSectionDlg::CurveCreator_NewSectionDlg( QWidget *parent, bool en
   myIsClosed = new QCheckBox(this);
   aCoordLayout->addWidget(aLbl, 2, 0);
   aCoordLayout->addWidget(myIsClosed, 2, 1);
-  if ( !enableClosed ) {
+  if ( !myIsEnableClosed ) {
     aLbl->hide();
     myIsClosed->hide();
   }