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

40 lines
893 B
C++

3 weeks ago
#include "CUIButtonBox.h"
#include<CUIConfig.h>
#include<CUI.h>
#include<QButtonGroup>
#include<QLayout>
#include<QAbstractButton>
#include<QDebug>
CUIButtonBox::CUIButtonBox(CUIConfig* conf, QVector<CUI*> &subCUI, QWidget *parent) : CUIGroupBox(conf,subCUI,parent)
{
// iniUI(subCUI);
}
//void CUIButtonBox::iniUI(QVector<CUI *> &subCUI)
//{
// buttongroup = new QButtonGroup();
// layout = new QVBoxLayout;
// qDebug()<<"buttonbox iniUI";
// this->setLayout(layout);
// for(auto config:conf->sub){
// CUI* ui = new CUI(config);
// qDebug()<<"before subCUI push_back";
// subCUI.push_back(ui);
// layout->addWidget(ui->getUI());
// qDebug()<<"before buttongroup add";
// QAbstractButton* button = qobject_cast<QAbstractButton*>(ui->getUI());
// if(button)
// buttongroup->addButton(button);
// }
//}