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