]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
A partial fix of IPAL19301(Setup Animation dialog problems).
authorakl <akl@opencascade.com>
Wed, 19 Mar 2008 11:28:14 +0000 (11:28 +0000)
committerakl <akl@opencascade.com>
Wed, 19 Mar 2008 11:28:14 +0000 (11:28 +0000)
src/VISUGUI/VisuGUI_TimeAnimation.cxx

index b00fe019f0cf3ede66693badd42cb2bba425468e..26b7ca6f6dba77a22d67b26438dd65e077e0c25c 100644 (file)
@@ -612,6 +612,7 @@ SetupDlg::SetupDlg (QWidget* theParent,
   QWidget* aPropFrame = new QWidget(this);
   QHBoxLayout* aHPropLayout = new QHBoxLayout( aPropFrame );
   aHPropLayout->setSpacing(5);
+  aHPropLayout->setMargin(0);
 
   QGroupBox* aNamesBox = new QGroupBox("Fields",aPropFrame);
   aHPropLayout->addWidget( aNamesBox );
@@ -649,7 +650,7 @@ SetupDlg::SetupDlg (QWidget* theParent,
   aHPropLayout->addWidget( aSetupBox );
   aVBoxLayout = new QVBoxLayout( aSetupBox );
   aVBoxLayout->setSpacing(5);
-  aHPropLayout->addWidget( aSetupBox );
+  aVBoxLayout->setMargin(0);
 
   QGroupBox* aPropBox = new QGroupBox("Properties", aSetupBox);
   aVBoxLayout->addWidget( aPropBox );
@@ -674,6 +675,7 @@ SetupDlg::SetupDlg (QWidget* theParent,
   if (myAnimator->getNbFields() > 1 ) {
     if( myAnimator->getAnimationMode() == VISU::Animation::PARALLEL ) {
       myArrangeBtn = new QPushButton("Arrange...", aSetupBox);
+      aVBoxLayout->addWidget( myArrangeBtn );
       connect( myArrangeBtn, SIGNAL( clicked() ), this, SLOT( onArrangeDlg() ) );
     }
   }
@@ -682,9 +684,11 @@ SetupDlg::SetupDlg (QWidget* theParent,
 
   QWidget* aBtnBox = new QWidget(this);
   QHBoxLayout* aBtnLayout = new QHBoxLayout(aBtnBox);
+  aBtnLayout->setContentsMargins( 5, 5, 0, 5 );
   aBtnLayout->addStretch();
 
   QPushButton* aCloseBtn = new QPushButton(tr("BUT_OK"), aBtnBox);
+  aBtnLayout->addWidget( aCloseBtn );
   connect(aCloseBtn, SIGNAL(clicked()), this, SLOT(onClose()));
 
   aMainLayout->addWidget(aBtnBox);
@@ -1559,7 +1563,7 @@ VisuGUI_TimeAnimationDlg::VisuGUI_TimeAnimationDlg (VisuGUI* theModule,
 
   QWidget* aBtnBox = new QWidget(this);
   QHBoxLayout* aBtnLayout = new QHBoxLayout(aBtnBox);
-  aBtnLayout->setMargin( 0 );
+  aBtnLayout->setContentsMargins( 5, 5, 0, 5 );
   aBtnLayout->addStretch();
 
   QPushButton* aCloseBtn = new QPushButton(tr("BUT_CLOSE"), aBtnBox);