-
Notifications
You must be signed in to change notification settings - Fork 0
/
imsmdtechnicalwidget.cpp
37 lines (31 loc) · 1.01 KB
/
imsmdtechnicalwidget.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "imsmdtechnicalwidget.h"
#include "ui_imsmdtechnicalwidget.h"
#include "imsmdterequirementwidget.h"
#include "imsmdteformatwidget.h"
imsmdTechnicalWidget::imsmdTechnicalWidget(TechnicalData *data, QWidget *parent) :
frameWidget(parent),
ui(new Ui::imsmdTechnicalWidget)
{
setTitle(tr("Technical")) ;
ui->setupUi(frameui->mainWidget);
putRequirementItems(data->requirement) ;
putFormatItems(data->format) ;
}
imsmdTechnicalWidget::~imsmdTechnicalWidget()
{
delete ui;
}
void imsmdTechnicalWidget::putRequirementItems(RequirementData *data) {
while(data!=NULL) {
imsmdTeRequirementWidget *tmpWidget = new imsmdTeRequirementWidget(data,this) ;
ui->teRequirementLayout->addWidget(tmpWidget);
data = data->next ;
}
}
void imsmdTechnicalWidget::putFormatItems(FormatData *data) {
while(data!=NULL) {
imsmdTeFormatWidget *tmpWidget = new imsmdTeFormatWidget(data,this) ;
ui->teFormatLayout->addWidget(tmpWidget);
data = data->next ;
}
}