From: akl Date: Tue, 18 Mar 2008 14:21:33 +0000 (+0000) Subject: Fix of IPAL19205(There is no button "Close" in Successive Animation window). X-Git-Tag: V5_0_0a1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09f60ea858205352e2f3ab0ff5044411e2e3220a;p=modules%2Fvisu.git Fix of IPAL19205(There is no button "Close" in Successive Animation window). --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index c0856da8..215c6cca 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -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);