translation work
This commit is contained in:
@@ -6,11 +6,11 @@ PatientInformationForm::PatientInformationForm(QWidget *parent) :
|
||||
ui(new Ui::PatientInformationForm)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->lbl_ID->setText("");
|
||||
ui->lbl_Date->setText("");
|
||||
ui->lbl_Name->setText("");
|
||||
ui->lbl_Sex->setText("");
|
||||
ui->lbl_Acc->setText("");
|
||||
//ui->lbl_ID->setText("");
|
||||
//ui->lbl_Date->setText("");
|
||||
//ui->lbl_Name->setText("");
|
||||
//ui->lbl_Sex->setText("");
|
||||
//ui->lbl_Acc->setText("");
|
||||
}
|
||||
|
||||
PatientInformationForm::~PatientInformationForm()
|
||||
@@ -33,11 +33,11 @@ void PatientInformationForm::setProtocol(int type) {
|
||||
switch(type)
|
||||
{
|
||||
case 0:
|
||||
ui->lbl_Protocol->setText("LEFT ONLY");
|
||||
ui->lbl_Protocol->setText(tr("LEFT ONLY"));
|
||||
break;
|
||||
case 1:
|
||||
default:
|
||||
ui->lbl_Protocol->setText("RIGHT ONLY");
|
||||
ui->lbl_Protocol->setText(tr("RIGHT ONLY"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -48,7 +48,7 @@ const char *PatientInformationForm::getCurrentPatientJsonString(bool empty) {
|
||||
cJSON_AddItemToObject(root, "PatientID",cJSON_CreateString(ui->lbl_ID->text().replace(' ','_').toStdString().data()));
|
||||
cJSON_AddItemToObject(root, "PatientSex",cJSON_CreateString(ui->lbl_Sex->text().toStdString().data()));
|
||||
cJSON_AddItemToObject(root, "PatientBirthDate",
|
||||
cJSON_CreateString(ui->lbl_Date->text().replace("/","").replace("-","").replace(' ','.').toStdString().data()));
|
||||
cJSON_CreateString(ui->lbl_Date->text().replace("/","").replace("-","").replace(' ','.').toStdString().data()));
|
||||
cJSON_AddItemToObject(root, "Laterality",cJSON_CreateString(currentProtocol?"R":"L"));
|
||||
cJSON_AddItemToObject(root, "IsEmptyData",cJSON_CreateNumber(empty?1:0));
|
||||
cJSON_AddItemToObject(root, "OperatorName",cJSON_CreateString("Bob"));
|
||||
|
||||
Reference in New Issue
Block a user