X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_PageGroupBox.cpp;h=6d0d55acfa4d5934daa6c813a240089e6b57b629;hb=1490e92974d2c0bdcdbecd6fa9388e31dccfa363;hp=1043a02fb35623f181835357bec29666f381fc88;hpb=2734393c7c19899fca7e7c36577b31317887a9c9;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_PageGroupBox.cpp b/src/ModuleBase/ModuleBase_PageGroupBox.cpp index 1043a02fb..6d0d55acf 100644 --- a/src/ModuleBase/ModuleBase_PageGroupBox.cpp +++ b/src/ModuleBase/ModuleBase_PageGroupBox.cpp @@ -23,17 +23,25 @@ ModuleBase_PageGroupBox::~ModuleBase_PageGroupBox() { } +void ModuleBase_PageGroupBox::addPageStretch() +{ +} + void ModuleBase_PageGroupBox::placeModelWidget(ModuleBase_ModelWidget* theWidget) { const int kCol = 0; const int kRow = myMainLayout->count(); - myMainLayout->addWidget(theWidget, kRow, kCol, Qt::AlignTop | Qt::AlignLeft); + // it seems, that the align on left is not necessary here, but leads to widgets, which are + // not extended on full width of the parent page. The case is grouped widgets in + // the sketch translation operation + myMainLayout->addWidget(theWidget, kRow, kCol, Qt::AlignTop);// | Qt::AlignLeft); + myMainLayout->setRowStretch(kRow, 0); + } -void ModuleBase_PageGroupBox::placePageWidget(ModuleBase_PageBase* theWidget) +void ModuleBase_PageGroupBox::placeWidget(QWidget* theWidget) { - QWidget* aWidget = dynamic_cast(theWidget); - if (!aWidget) { + if (!theWidget) { #ifdef _DEBUG std::cout << "ModuleBase_PageGroupBox::placePageWidget: can not cast page" << std::endl; #endif @@ -41,7 +49,8 @@ void ModuleBase_PageGroupBox::placePageWidget(ModuleBase_PageBase* theWidget) } const int kCol = 0; const int kRow = myMainLayout->count(); - myMainLayout->addWidget(aWidget, kRow, kCol, Qt::AlignTop | Qt::AlignLeft); + myMainLayout->addWidget(theWidget, kRow, kCol); + myMainLayout->setRowStretch(kRow, 0); } QLayout* ModuleBase_PageGroupBox::pageLayout()