Scan tab Patient information logic and protocol logic.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "guimacros.h"
|
||||
#include "patientinformationform.h"
|
||||
#include <QButtonGroup>
|
||||
#include "event/EventCenter.h"
|
||||
|
||||
ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
|
||||
const char* style="QWidget#PatientInformationForm{min-width:300px;max-width:300px; margin-right:10}"
|
||||
@@ -41,8 +42,8 @@ ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
|
||||
btnLeft->setCheckable(true);
|
||||
btnLeft->setChecked(true);
|
||||
btnRight->setCheckable(true);
|
||||
group->addButton(btnRight);
|
||||
group->addButton(btnLeft);
|
||||
group->addButton(btnRight,1);
|
||||
group->addButton(btnLeft,0);
|
||||
layout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Expanding));
|
||||
QWidget* spacerLine2= new QWidget(this);
|
||||
spacerLine2->setFixedWidth(2);
|
||||
@@ -96,9 +97,21 @@ ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
|
||||
paramLayout->addWidget(lbl_end2);
|
||||
paramLayout->addSpacerItem(new QSpacerItem(20,20,QSizePolicy::Minimum,QSizePolicy::Expanding));
|
||||
contentLayout->addWidget(param_widget);
|
||||
pat_inf = patient_information;
|
||||
|
||||
//Events---------------------------------------------------------------
|
||||
connect(EventCenter::Default(),&EventCenter::PatientSelected,[=](QObject* sender,QObject* data){
|
||||
patient_information->setPatientInformation((PatientInformation*)data);
|
||||
});
|
||||
|
||||
connect(group, SIGNAL(buttonClicked(int)),this,SLOT(protocolChanged(int)));
|
||||
}
|
||||
|
||||
ScanFormWidget::~ScanFormWidget() {
|
||||
|
||||
}
|
||||
|
||||
void ScanFormWidget::protocolChanged(int type) {
|
||||
printf("%d\r\n",type);
|
||||
pat_inf->setProtocol(type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user