Change dialog style, add Scan Patient confirm
This commit is contained in:
@@ -15,15 +15,11 @@ QWidget(parent),
|
||||
mUI(new Ui::PatientDetailForm)
|
||||
, mBtnEdit(new QToolButton())
|
||||
, mBtnDelete(new QToolButton())
|
||||
, mBtnPlaceWidget(new QWidget(this))
|
||||
, mLblMessage(new QLabel(this))
|
||||
|
||||
{
|
||||
mUI->setupUi(this);
|
||||
mUI->hideBtn->setSizePolicy(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Preferred);
|
||||
mUI->hideBtn->setObjectName("btnHidePanel");
|
||||
mUI->hideBtn->setText(tr(" Hide Panel"));
|
||||
mUI->hideBtn->setVisible(false);
|
||||
connect(mUI->hideBtn, &QToolButton::clicked, [=](){
|
||||
emit hideBtnClicked();
|
||||
});
|
||||
mUI->lblPatInfPanel->setObjectName("PatInfTitle");
|
||||
mUI->lblIcon->setObjectName("PatIcon");
|
||||
mUI->lbl_DOB->setObjectName("displayDetail");
|
||||
@@ -33,13 +29,13 @@ mUI(new Ui::PatientDetailForm)
|
||||
mUI->lblAccno->setObjectName("displayDetail");
|
||||
mUI->lblAddDate->setObjectName("displayDetail");
|
||||
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this,&PatientDetailForm::reloadLanguage);
|
||||
QWidget * widget = new QWidget(this);
|
||||
widget->setFixedHeight(120);
|
||||
mBtnPlaceWidget->setFixedHeight(120);
|
||||
mUI->verticalLayout_2->setSpacing(50);
|
||||
|
||||
mUI->verticalLayout_3->insertWidget(5, widget);
|
||||
|
||||
QHBoxLayout * layout = new QHBoxLayout(widget);
|
||||
mUI->verticalLayout_3->insertWidget(5, mBtnPlaceWidget);
|
||||
mUI->verticalLayout_3->insertWidget(5, mLblMessage);
|
||||
mLblMessage->setVisible(false);
|
||||
QHBoxLayout * layout = new QHBoxLayout(mBtnPlaceWidget);
|
||||
mBtnEdit->setObjectName("btnPatEdit");
|
||||
mBtnDelete->setObjectName("btnPatDelete");
|
||||
mBtnEdit->setText(tr("Edit"));
|
||||
@@ -88,6 +84,16 @@ void PatientDetailForm::clearPatientInformation() {
|
||||
mUI->lblAccno->clear();
|
||||
}
|
||||
|
||||
void PatientDetailForm::confirmModeOn(int protocol)
|
||||
{
|
||||
mBtnPlaceWidget->setVisible(false);
|
||||
mLblMessage->setVisible(true);
|
||||
|
||||
mUI->lblPatInfPanel->setText(tr("Scan with this Patient?"));
|
||||
mUI->lblAddDate->setText(tr("Protocol: ")+(protocol==0?tr("Left"):tr("Right")));
|
||||
|
||||
}
|
||||
|
||||
void PatientDetailForm::storePatientInformation() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user