X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_PageWidget.cpp;h=9d32e79e7946699d7bb6c9f0d7e8866389eb5ee8;hb=752c9e02e6aa8ced24e9b53097cb42540d5e6a08;hp=f49e53eea1fed66f299c38036c746a983ba82af2;hpb=806d6cb3a4f7980426bc63d7c6f1d9c87be260a4;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_PageWidget.cpp b/src/ModuleBase/ModuleBase_PageWidget.cpp index f49e53eea..9d32e79e7 100644 --- a/src/ModuleBase/ModuleBase_PageWidget.cpp +++ b/src/ModuleBase/ModuleBase_PageWidget.cpp @@ -11,6 +11,8 @@ #include +#include + ModuleBase_PageWidget::ModuleBase_PageWidget(QWidget* theParent) : QFrame(theParent) { @@ -33,6 +35,7 @@ void ModuleBase_PageWidget::placeModelWidget(ModuleBase_ModelWidget* theWidget) const int kCol = 0; const int kRow = myMainLayout->count(); myMainLayout->addWidget(theWidget, kRow, kCol); + myMainLayout->setRowStretch(kRow, 0); } void ModuleBase_PageWidget::placePageWidget(ModuleBase_PageBase* theWidget) @@ -46,7 +49,8 @@ void ModuleBase_PageWidget::placePageWidget(ModuleBase_PageBase* theWidget) } const int kCol = 0; const int kRow = myMainLayout->count(); - myMainLayout->addWidget(aWidget, kRow, kCol);//, Qt::AlignTop | Qt::AlignLeft); + myMainLayout->addWidget(aWidget, kRow, kCol); + myMainLayout->setRowStretch(kRow, 0); } QLayout* ModuleBase_PageWidget::pageLayout()