|
|
|
@ -1,15 +1,13 @@
|
|
|
|
|
#include "CUIComponentBaseWidget.h"
|
|
|
|
|
#include "CUIConfig.h"
|
|
|
|
|
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
#include <QHBoxLayout>
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
|
|
CUIComponentBaseWidget::CUIComponentBaseWidget(QWidget *parent) : QWidget(parent)
|
|
|
|
|
{
|
|
|
|
|
CUIComponentBaseWidget::CUIComponentBaseWidget(QWidget *parent) : QWidget(parent) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QLayout *CUIComponentBaseWidget::getLayout(CUIConfig *conf)
|
|
|
|
|
{
|
|
|
|
|
QLayout *CUIComponentBaseWidget::getLayout(CUIConfig *conf) {
|
|
|
|
|
if (!conf) {
|
|
|
|
|
return new QVBoxLayout;
|
|
|
|
|
}
|
|
|
|
@ -17,7 +15,7 @@ QLayout *CUIComponentBaseWidget::getLayout(CUIConfig *conf)
|
|
|
|
|
QString layoutConf = conf->getPropertyValue("layout");
|
|
|
|
|
if (layoutConf == "QVBoxLayout") {
|
|
|
|
|
layout = new QVBoxLayout;
|
|
|
|
|
} else if (layoutConf == "QVBoxLayout") {
|
|
|
|
|
} else if (layoutConf == "QHBoxLayout") {
|
|
|
|
|
layout = new QHBoxLayout;
|
|
|
|
|
} else {
|
|
|
|
|
layout = new QVBoxLayout;
|
|
|
|
@ -27,15 +25,12 @@ QLayout *CUIComponentBaseWidget::getLayout(CUIConfig *conf)
|
|
|
|
|
return layout;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CUIComponentBaseWidget::initUI()
|
|
|
|
|
{
|
|
|
|
|
void CUIComponentBaseWidget::initUI() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
qint32 CUIComponentBaseWidget::getLabelWidth()
|
|
|
|
|
{
|
|
|
|
|
qint32 CUIComponentBaseWidget::getLabelWidth() {
|
|
|
|
|
return 100;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CUIComponentBaseWidget::setLabelWidth(qint32 width)
|
|
|
|
|
{
|
|
|
|
|
void CUIComponentBaseWidget::setLabelWidth(qint32 width) {
|
|
|
|
|
}
|
|
|
|
|