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.
AppFlow/CFDStruct/CUIProperty/CUIComponentPushButton.cpp

21 lines
552 B
C++

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