Make select patient can change to scan page.

This commit is contained in:
sunwen
2024-05-06 13:26:57 +08:00
parent e55a13ccfd
commit 172446f6d3
5 changed files with 21 additions and 8 deletions

View File

@@ -77,6 +77,12 @@ SelectFormWidget::SelectFormWidget(QWidget* parent)
connect(EventCenter::Default(), &EventCenter::AnonymousModeChanged, this, &SelectFormWidget::updateDataByAnonymousMode);
connect(EventCenter::Default(), &EventCenter::StartScanProcess, this, [=](QObject* sender, QObject* data)
{
PatientInformation* patientInfo = (PatientInformation*)data;
this->setSelectedPatient(patientInfo);
});
//first prepare buttons!
prepareButtons(false);
@@ -176,8 +182,11 @@ void SelectFormWidget::delPatient() {
void SelectFormWidget::selectPatient() {
EventCenter::Default()->triggerEvent(PatientSelected, nullptr, (QObject*)patientDetailForm->getPatientInformation());
selectedPatientUID = patientDetailForm->getPatientInformation()->PatientUID;
LOG_USER_OPERATION(QString("Select Patient, ID: %1").arg(patientDetailForm->getPatientInformation()->ID))
}
void SelectFormWidget::setSelectedPatient(PatientInformation* aPatient)
{
selectedPatientUID = aPatient->PatientUID;
}
void SelectFormWidget::initDetailPanel(QHBoxLayout *contentLayout) {// prepare edit panel