2 * ModuleBase_PageWidget.cpp
4 * Created on: Mar 4, 2015
8 #include <ModuleBase_PageWidget.h>
9 #include <ModuleBase_ModelWidget.h>
10 #include <ModuleBase_Tools.h>
16 ModuleBase_PageWidget::ModuleBase_PageWidget(QWidget* theParent)
19 myMainLayout = new QVBoxLayout(this);
20 ModuleBase_Tools::adjustMargins(myMainLayout);
21 setLayout(myMainLayout);
24 ModuleBase_PageWidget::~ModuleBase_PageWidget()
28 void ModuleBase_PageWidget::addPageStretch()
30 myMainLayout->addStretch(1);
33 void ModuleBase_PageWidget::placeModelWidget(ModuleBase_ModelWidget* theWidget)
35 myMainLayout->addWidget(theWidget, 0);
38 void ModuleBase_PageWidget::placeWidget(QWidget* theWidget)
42 std::cout << "ModuleBase_PageWidget::placePageWidget: can not cast page" << std::endl;
46 myMainLayout->addWidget(theWidget, 0);
49 QLayout* ModuleBase_PageWidget::pageLayout()