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