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.
21 lines
553 B
C++
21 lines
553 B
C++
#include "CUIComponentRadioButton.h"
|
|
|
|
#include<CUIConfig.h>
|
|
#include<CUI.h>
|
|
#include<QDebug>
|
|
#include<QVBoxLayout>
|
|
|
|
CUIComponentRadioButton::CUIComponentRadioButton(CUIConfig* conf, QVector<CUI*> subCUI, QWidget *parent) : CUIComponentBaseWidget(parent)
|
|
{
|
|
this->m_conf = conf;
|
|
initUI(subCUI);
|
|
}
|
|
|
|
void CUIComponentRadioButton::initUI(QVector<CUI*> &subCUI)
|
|
{
|
|
m_radioButton = new QRadioButton(m_conf->getPropertyValue("name"));
|
|
QVBoxLayout* layout = new QVBoxLayout;
|
|
layout->addWidget(m_radioButton);
|
|
this->setLayout(layout);
|
|
}
|