You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include "CUIComponentPushButton.h"
|
|
|
|
|
|
|
|
|
|
#include <CUIConfig.h>
|
|
|
|
|
#include <CUIPropertyWidget.h>
|
|
|
|
|
|
|
|
|
|
#include <QPushButton>
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
|
|
CUIComponentPushButton::CUIComponentPushButton(
|
|
|
|
|
CUIConfig *conf, QVector<CUIPropertyWidget *> &subCUI, QWidget *parent)
|
|
|
|
|
: CUIComponentBaseWidget(parent)
|
|
|
|
|
{
|
|
|
|
|
this->m_conf = conf;
|
|
|
|
|
initUI(subCUI);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CUIComponentPushButton::initUI(QVector<CUIPropertyWidget *> &subCUI)
|
|
|
|
|
{
|
|
|
|
|
m_pushButton = new QPushButton(m_conf->getPropertyValue("name"));
|
|
|
|
|
QVBoxLayout *layout = new QVBoxLayout;
|
|
|
|
|
layout->addWidget(m_pushButton);
|
|
|
|
|
this->setLayout(layout);
|
|
|
|
|
}
|