Add edit accept signal to EditPatientForm.
This commit is contained in:
@@ -29,6 +29,11 @@ EditPatientForm::EditPatientForm(QWidget *parent) :
|
||||
this->setEditEnable(false);
|
||||
restorePatientInformation();
|
||||
});
|
||||
connect(btnEditAccept,&QToolButton::clicked,[=](){
|
||||
storePatientInformation();
|
||||
this->setEditEnable(false);
|
||||
emit editAccept(getPatientInformation());
|
||||
});
|
||||
}
|
||||
|
||||
EditPatientForm::~EditPatientForm()
|
||||
|
||||
@@ -39,10 +39,15 @@ public:
|
||||
explicit EditPatientForm(QWidget *parent = nullptr);
|
||||
~EditPatientForm();
|
||||
void setPatientInformation(PatientInformation * information);
|
||||
PatientInformation * getPatientInformation(){
|
||||
return &store;
|
||||
}
|
||||
void clearPatientInformation();
|
||||
void storePatientInformation();
|
||||
void restorePatientInformation();
|
||||
void setEditEnable(bool enable);
|
||||
signals:
|
||||
void editAccept(PatientInformation * detail);
|
||||
private:
|
||||
Ui::EditPatientForm *ui;
|
||||
QString currentPatientUID;
|
||||
|
||||
Reference in New Issue
Block a user