Files
GUI/src/patientinformationform.cpp

37 lines
896 B
C++
Raw Normal View History

2021-10-09 16:38:34 +08:00
#include "patientinformationform.h"
#include "ui_patientinformationform.h"
PatientInformationForm::PatientInformationForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::PatientInformationForm)
{
ui->setupUi(this);
}
PatientInformationForm::~PatientInformationForm()
{
delete ui;
if (inf) delete inf;
}
void PatientInformationForm::setPatientInformation(PatientInformation* information) {
ui->lbl_ID->setText(information->ID);
ui->lbl_Date->setText(information->BirthDate);
ui->lbl_Name->setText(information->Name);
ui->lbl_Sex->setText(information->Sex);
inf = information;
}
void PatientInformationForm::setProtocol(int type) {
switch(type)
{
case 0:
ui->lbl_Protocol->setText("LEFT ONLY");
break;
case 1:
default:
ui->lbl_Protocol->setText("RIGHT ONLY");
break;
}
2021-10-09 16:38:34 +08:00
}