#include "CUIComponentBaseContainerWidget.h" #include "CUIConfig.h" #include #include CUIComponentBaseContainerWidget::CUIComponentBaseContainerWidget(QWidget *parent) : QWidget(parent) { } QLayout *CUIComponentBaseContainerWidget::getLayout(CUIConfig *conf) { if (!conf) { return new QVBoxLayout; } QLayout* layout; QString layoutConf = conf->getPropertyValue("layout"); if (layoutConf == "QVBoxLayout") { layout = new QVBoxLayout; } else if (layoutConf == "QVBoxLayout") { layout = new QHBoxLayout; } else { layout = new QVBoxLayout; } layout->setSpacing(0); layout->setMargin(0); return layout; }