Salome HOME
PAL15614: Incorrect size of window for More...(selecting of every product) in maximiz...
authorvsr <vsr@opencascade.com>
Mon, 16 Apr 2007 13:44:39 +0000 (13:44 +0000)
committervsr <vsr@opencascade.com>
Mon, 16 Apr 2007 13:44:39 +0000 (13:44 +0000)
src/SALOME_InstallWizard.cxx

index 3a8121ddd0be067464045e522e388527de1e4d1b..bca0109e3c6313934dbe9e5e166f2c27a41415fd 100644 (file)
@@ -720,10 +720,12 @@ void SALOME_InstallWizard::setupProductsPage(const bool forceSrc)
   sizeLayout->addWidget( requiredSize, 0, 1 );
   sizeLayout->addWidget( reqLab2,      1, 0 );
   sizeLayout->addWidget( requiredTemp, 1, 1 );
+  // <More...>/<Less...> box super-container :)
+  QVBox* moreLessBox = new QVBox( productsPage );
   //
   // create <More...> mode widgets container
   //
-  moreBox = new QWidget( productsPage );
+  moreBox = new QWidget( moreLessBox );
   QGridLayout* moreBoxLayout = new QGridLayout( moreBox );
   moreBoxLayout->setMargin( 0 ); moreBoxLayout->setSpacing( 6 );
   //
@@ -770,7 +772,7 @@ void SALOME_InstallWizard::setupProductsPage(const bool forceSrc)
   //
   // create <Less...> mode widgets container
   //
-  lessBox = new QWidget( productsPage );
+  lessBox = new QWidget( moreLessBox );
   QGridLayout* lessBoxLayout = new QGridLayout( lessBox );
   lessBoxLayout->setMargin( 0 ); lessBoxLayout->setSpacing( 6 );
   //
@@ -798,13 +800,10 @@ void SALOME_InstallWizard::setupProductsPage(const bool forceSrc)
   pageLayout->addMultiCellWidget( tempLab,      2, 2, 0, 1 );
   pageLayout->addWidget         ( tempFolder,   3,    0    );
   pageLayout->addWidget         ( tempBtn,      3,    1    );
-  pageLayout->addMultiCellWidget( moreBox,      4, 4, 0, 1 );
-  pageLayout->addMultiCellWidget( lessBox,      5, 5, 0, 1 );
-  pageLayout->addMultiCellWidget( line,         6, 6, 0, 1 );
-  pageLayout->addLayout         ( sizeLayout,   7,    0    );
-  pageLayout->addWidget         ( moreBtn,      7,    1    );
-  pageLayout->setRowStretch( 4, 5 );
-  pageLayout->setRowStretch( 5, 5 );
+  pageLayout->addMultiCellWidget( moreLessBox,  4, 4, 0, 1 );
+  pageLayout->addMultiCellWidget( line,         5, 5, 0, 1 );
+  pageLayout->addLayout         ( sizeLayout,   6,    0    );
+  pageLayout->addWidget         ( moreBtn,      6,    1    );
   //
   // xml reader
   //