#include "CUIComponentPushButton.h" #include #include #include #include CUIComponentPushButton::CUIComponentPushButton(CUIConfig* conf, QVector &subCUI, QWidget *parent) : CUIComponentBaseWidget(parent) { this->m_conf = conf; initUI(subCUI); } void CUIComponentPushButton::initUI(QVector &subCUI) { m_pushButton = new QPushButton(m_conf->getPropertyValue("name")); QVBoxLayout* layout = new QVBoxLayout; layout->addWidget(m_pushButton); this->setLayout(layout); }