|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
#include "CUI.h"
|
|
|
|
|
#include "CUI.h"
|
|
|
|
|
|
|
|
|
|
#include<CUIConfig.h>
|
|
|
|
|
#include<CUIWidget.h>
|
|
|
|
@ -20,7 +20,6 @@
|
|
|
|
|
CUI::CUI(QWidget *parent, CUIConfig *conf): QWidget(parent)
|
|
|
|
|
{
|
|
|
|
|
this->conf = conf;
|
|
|
|
|
// this->conf->printConfig();
|
|
|
|
|
qDebug() << "----------------------";
|
|
|
|
|
buildUI();
|
|
|
|
|
}
|
|
|
|
@ -58,10 +57,12 @@ void CUI::buildUI()
|
|
|
|
|
if (widget) {
|
|
|
|
|
qDebug() << "----------- ui widget is not null";
|
|
|
|
|
QVBoxLayout *layout = new QVBoxLayout;
|
|
|
|
|
layout->setSpacing(0);
|
|
|
|
|
layout->setMargin(0);
|
|
|
|
|
layout->addWidget(widget);
|
|
|
|
|
this->setLayout(layout);
|
|
|
|
|
// QSpacerItem* spacer = new QSpacerItem(5000,5000,QSizePolicy::Maximum,QSizePolicy::Maximum);
|
|
|
|
|
// layout->addItem(spacer);
|
|
|
|
|
// QSpacerItem *verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
|
// layout->addSpacerItem(verticalSpacer);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
qDebug() << "----------- ui widget is null";
|
|
|
|
|