]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of IPAL19205(There is no button "Close" in Successive Animation window).
authorakl <akl@opencascade.com>
Tue, 18 Mar 2008 14:21:33 +0000 (14:21 +0000)
committerakl <akl@opencascade.com>
Tue, 18 Mar 2008 14:21:33 +0000 (14:21 +0000)
src/VISUGUI/VisuGUI_TimeAnimation.cxx

index c0856da80686b305c368bae640a959ad0c054978..215c6cca9bbd2863e32b944d68289664082ab05d 100644 (file)
@@ -1543,7 +1543,7 @@ VisuGUI_TimeAnimationDlg::VisuGUI_TimeAnimationDlg (VisuGUI* theModule,
   // Animation publishing in study
   QWidget* aPublishBox = new QWidget(this);
   QHBoxLayout* aPubHBLay = new QHBoxLayout( aPublishBox );
-  aPubHBLay->setSpacing(5);
+  aPubHBLay->setMargin( 0 );
 
   myPublishBtn = new QPushButton("Publish to study", aPublishBox);
   aPubHBLay->addWidget( myPublishBtn );
@@ -1559,12 +1559,15 @@ VisuGUI_TimeAnimationDlg::VisuGUI_TimeAnimationDlg (VisuGUI* theModule,
 
   QWidget* aBtnBox = new QWidget(this);
   QHBoxLayout* aBtnLayout = new QHBoxLayout(aBtnBox);
+  aBtnLayout->setMargin( 0 );
   aBtnLayout->addStretch();
 
   QPushButton* aCloseBtn = new QPushButton(tr("BUT_CLOSE"), aBtnBox);
+  aBtnLayout->addWidget( aCloseBtn );
   connect(aCloseBtn, SIGNAL(clicked()), this, SLOT(close()));
 
   QPushButton* aHelpBtn = new QPushButton(tr("BUT_HELP"), aBtnBox);
+  aBtnLayout->addWidget( aHelpBtn );
   connect(aHelpBtn, SIGNAL(clicked()), this, SLOT(onHelp()));
 
   SUIT_Study* aStudy = VISU::GetAppStudy(myModule);