Refactor clearPatientInformation in EditPatientForm.
This commit is contained in:
@@ -35,9 +35,7 @@ EditPatientForm::EditPatientForm(QWidget* parent) :
|
||||
mUI->rtbxComment->setEnabled(false);
|
||||
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() {
|
||||
mUI->tbxID->setText("");
|
||||
mUI->tbxID->clear();
|
||||
mUI->tbxDob->setDate(QDate::currentDate());
|
||||
mUI->tbxName->setText("");
|
||||
mUI->tbxSex->setText("");
|
||||
mUI->rtbxComment->setText("");
|
||||
mCurrentPatientUID = "";
|
||||
mAddDate = "";
|
||||
mUI->tbxName->clear();
|
||||
mUI->tbxSex->clear();
|
||||
mUI->rtbxComment->clear();
|
||||
mCurrentPatientUID.clear();
|
||||
mAddDate.clear();
|
||||
}
|
||||
|
||||
void EditPatientForm::storePatientInformation() {
|
||||
|
||||
Reference in New Issue
Block a user