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 "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);
|
|
|
|
|
}
|