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/CUIComponentRadioButton.cpp

24 lines
609 B
C++

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