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

29 lines
627 B
C++

3 weeks ago
#include "CUITabWidget.h"
#include<CUIConfig.h>
#include<CUIConfig.h>
#include<CUI.h>
/**
* @brief CUITabWidget::CUITabWidget
* @param conf
* @param parent
*/
CUITabWidget::CUITabWidget(CUIConfig* conf, QVector<CUI*> &subCUI, QWidget *parent) : QTabWidget(parent)
{
this->conf = conf;
iniUI(subCUI);
}
/**
* @brief CUITabWidget::iniUI
*/
void CUITabWidget::iniUI(QVector<CUI*> &subCUI)
{
for(auto conf:conf->sub){
CUI* subui = new CUI(conf);
subCUI.push_back(subui);
this->addTab(subui->getUI(),conf->property["name"]);
}
}