Change dialog style, add Scan Patient confirm
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "forms/scan/PatientInformationForm.h"
|
||||
#include "event/EventCenter.h"
|
||||
#include "dialogs/DialogManager.h"
|
||||
#include "log/UserOperationLog.h"
|
||||
#include "json/jsonobject.h"
|
||||
#include "device/DeviceManager.h"
|
||||
@@ -180,6 +181,11 @@ void ScanFormWidget::initScanControlBar(QHBoxLayout *layout){
|
||||
});
|
||||
|
||||
connect(mBtnScan, &QToolButton::clicked, [=]() {
|
||||
if(JsonObject::Instance()->getScanConfirm())
|
||||
{
|
||||
int ret = DialogManager::Default()->requestPatientConfirm(mPatInf->getPatientInformation(),mPatInf->getProtocol());
|
||||
if (ret != QDialog::Accepted) return;
|
||||
}
|
||||
QString patientInf(mPatInf->getCurrentPatientJsonString(false));
|
||||
LOG_USER_OPERATION(QString("Start Scan, ID: %1").arg(mPatInf->getPatientID()))
|
||||
if (!DeviceManager::Default()->hasValidEmptyScan()){
|
||||
|
||||
Reference in New Issue
Block a user