Refactor clearPatientInformation in EditPatientForm.

This commit is contained in:
Krad
2022-06-14 14:03:06 +08:00
parent f9bbeb46ca
commit cdaa5c0ed2

View File

@@ -35,9 +35,7 @@ EditPatientForm::EditPatientForm(QWidget* parent) :
mUI->rtbxComment->setEnabled(false); mUI->rtbxComment->setEnabled(false);
mUI->rtbxComment->setObjectName("display_tbx"); mUI->rtbxComment->setObjectName("display_tbx");
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this,EditPatientForm::reloadLanguage); connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this,&EditPatientForm::reloadLanguage);
} }
@@ -67,13 +65,13 @@ void EditPatientForm::setPatientInformation(PatientInformation* information) {
} }
void EditPatientForm::clearPatientInformation() { void EditPatientForm::clearPatientInformation() {
mUI->tbxID->setText(""); mUI->tbxID->clear();
mUI->tbxDob->setDate(QDate::currentDate()); mUI->tbxDob->setDate(QDate::currentDate());
mUI->tbxName->setText(""); mUI->tbxName->clear();
mUI->tbxSex->setText(""); mUI->tbxSex->clear();
mUI->rtbxComment->setText(""); mUI->rtbxComment->clear();
mCurrentPatientUID = ""; mCurrentPatientUID.clear();
mAddDate = ""; mAddDate.clear();
} }
void EditPatientForm::storePatientInformation() { void EditPatientForm::storePatientInformation() {