From 99e61cc4781dac4b809b9c3c1dffcb431369a28a Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 19 Mar 2008 11:28:14 +0000 Subject: [PATCH] A partial fix of IPAL19301(Setup Animation dialog problems). --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index b00fe019..26b7ca6f 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -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); -- 2.39.2