Add debug log for real device debug

This commit is contained in:
Krad
2021-10-26 09:51:23 +08:00
parent 7a1476c4ad
commit 2715d5dee0
2 changed files with 75 additions and 22 deletions

View File

@@ -13,6 +13,7 @@
#include "event/EventCenter.h"
#include <QImage>
#include <QPainter>
#include <qdebug.h>
#ifdef WIN32
#else
@@ -208,16 +209,18 @@ ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
patient_information->setPatientInformation((PatientInformation*)data);
});
connect(btnRefresh,&QToolButton::clicked,[=](){
QString patientInf(patient_information->getCurrentPatientJsonString(true));
printf("%s\r\n",patientInf.toStdString().data());
qDebug()<<"Get patient Json string start!";
QString patientInf(patient_information->getCurrentPatientJsonString(false));
qDebug()<<"Get patient Json string end! string:"<<patientInf;
EventCenter::Default()->triggerEvent(GUIEvents::RequestEmptyScan, nullptr, (QObject*)(&patientInf));
});
connect(btnPreview,&QToolButton::clicked,[=](){
EventCenter::Default()->triggerEvent(GUIEvents::RequestPreviewScan, nullptr, nullptr);
});
connect(btnScan,&QToolButton::clicked,[=](){
qDebug()<<"Get patient Json string start!";
QString patientInf(patient_information->getCurrentPatientJsonString(false));
printf("%s\r\n",patientInf.toStdString().data());
qDebug()<<"Get patient Json string end! string:"<<patientInf;
EventCenter::Default()->triggerEvent(GUIEvents::RequestPatientScan, nullptr, (QObject*)(&patientInf));
});
connect(btnStop,&QToolButton::clicked,[=](){