#include <QGridLayout>
+#include <iostream>
+
ModuleBase_PageWidget::ModuleBase_PageWidget(QWidget* theParent)
: QFrame(theParent)
{
{
}
+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)
}
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()