X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_PageWidget.cpp;h=9d32e79e7946699d7bb6c9f0d7e8866389eb5ee8;hb=7cb6ac084270943d926ec7ef35bf9e63d6a3eaf5;hp=a75a6cfba22b3dc5ca8ba4057730b7cca8a0bc73;hpb=2734393c7c19899fca7e7c36577b31317887a9c9;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_PageWidget.cpp b/src/ModuleBase/ModuleBase_PageWidget.cpp index a75a6cfba..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) { @@ -23,11 +25,17 @@ ModuleBase_PageWidget::~ModuleBase_PageWidget() { } +void ModuleBase_PageWidget::addPageStretch() +{ + myMainLayout->setRowStretch(myMainLayout->rowCount(), 1); +} + void ModuleBase_PageWidget::placeModelWidget(ModuleBase_ModelWidget* theWidget) { const int kCol = 0; const int kRow = myMainLayout->count(); - myMainLayout->addWidget(theWidget, kRow, kCol, Qt::AlignTop | Qt::AlignLeft); + myMainLayout->addWidget(theWidget, kRow, kCol); + myMainLayout->setRowStretch(kRow, 0); } void ModuleBase_PageWidget::placePageWidget(ModuleBase_PageBase* theWidget) @@ -41,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()