Modify PatientDetailform

This commit is contained in:
kradchen
2023-09-07 11:17:47 +08:00
parent 3a281f4db5
commit 198018b165
8 changed files with 786 additions and 542 deletions

View File

@@ -4,41 +4,59 @@
#include <QListView> #include <QListView>
#include <QToolButton> #include <QToolButton>
#include <QButtonGroup> #include <QButtonGroup>
#include <qboxlayout.h>
#include <qdebug.h> #include <qdebug.h>
#include <qwidget.h>
#include "event/EventCenter.h" #include "event/EventCenter.h"
PatientDetailForm::PatientDetailForm(QWidget* parent) : PatientDetailForm::PatientDetailForm(QWidget* parent) :
QWidget(parent), QWidget(parent),
mUI(new Ui::PatientDetailForm) mUI(new Ui::PatientDetailForm)
, mBtnEdit(new QToolButton())
, mBtnDelete(new QToolButton())
{ {
mUI->setupUi(this); mUI->setupUi(this);
mUI->hideBtn->setSizePolicy(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Preferred); mUI->hideBtn->setSizePolicy(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Preferred);
mUI->hideBtn->setObjectName("btnHidePanel"); mUI->hideBtn->setObjectName("btnHidePanel");
mUI->hideBtn->setText(tr(" Hide Panel")); mUI->hideBtn->setText(tr(" Hide Panel"));
mUI->hideBtn->setVisible(false);
connect(mUI->hideBtn, &QToolButton::clicked, [=](){ connect(mUI->hideBtn, &QToolButton::clicked, [=](){
emit hideBtnClicked(); emit hideBtnClicked();
}); });
mUI->tbxDob->setDisplayFormat("yyyy/MM/dd"); mUI->lblPatInfPanel->setObjectName("PatInfTitle");
mUI->lblIcon->setObjectName("PatIcon");
mUI->tbxID->setEnabled(false); mUI->lbl_DOB->setObjectName("displayDetail");
mUI->tbxID->setObjectName("displayLineEdit"); mUI->lbl_Name->setObjectName("displayDetail");
mUI->tbxDob->setEnabled(false); mUI->lblPatID->setObjectName("displayDetail");
mUI->tbxDob->setObjectName("displayLineEdit"); mUI->lbl_Sex->setObjectName("displayDetail");
mUI->tbxName->setEnabled(false); mUI->lblAccno->setObjectName("displayDetail");
mUI->tbxName->setObjectName("displayLineEdit"); mUI->lblAddDate->setObjectName("displayDetail");
mUI->tbxSex->setEnabled(false);
mUI->tbxSex->setObjectName("displayLineEdit");
mUI->rtbxComment->setEnabled(false);
mUI->rtbxComment->setObjectName("displayLineEdit");
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this,&PatientDetailForm::reloadLanguage); connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this,&PatientDetailForm::reloadLanguage);
QWidget * widget = new QWidget(this);
widget->setFixedHeight(120);
mUI->verticalLayout_2->setSpacing(50);
mUI->verticalLayout_3->insertWidget(5, widget);
QHBoxLayout * layout = new QHBoxLayout(widget);
mBtnEdit->setObjectName("btnEdit");
mBtnDelete->setObjectName("btnDelete");
mBtnEdit->setText(tr("Edit"));
mBtnDelete->setText(tr("Delete"));
layout->addWidget(mBtnEdit);
layout->addWidget(mBtnDelete);
connect(mBtnEdit, &QToolButton::clicked, [=](){
emit editClicked();
});
connect(mBtnDelete, &QToolButton::clicked, [=](){
emit deleteClicked();
});
} }
void PatientDetailForm::reloadLanguage() { void PatientDetailForm::reloadLanguage() {
mUI->retranslateUi(this); mUI->retranslateUi(this);
mUI->tbxSex->setText(mStore.Sex == "F" ? tr("Female") : (mStore.Sex == "M" ? tr("Male") : tr("Other"))); mUI->lbl_Sex->setText(mStore.Sex == "F" ? tr("Female") : (mStore.Sex == "M" ? tr("Male") : tr("Other")));
} }
PatientDetailForm::~PatientDetailForm() PatientDetailForm::~PatientDetailForm()
@@ -49,35 +67,27 @@ PatientDetailForm::~PatientDetailForm()
void PatientDetailForm::setPatientInformation(PatientInformation* information) { void PatientDetailForm::setPatientInformation(PatientInformation* information) {
if (information) if (information)
{ {
mUI->tbxID->setText(information->ID); mUI->lblPatID->setText(tr("PatientID: ")+information->ID);
mUI->tbxDob->setDate(QDate::fromString(information->BirthDate, "yyyy-MM-dd")); mUI->lbl_DOB->setText(" "+information->BirthDate);
mUI->tbxName->setText(information->Name); mUI->lbl_Name->setText(" "+information->Name);
mUI->rtbxComment->setText(information->Comment); mUI->lbl_Sex->setText(" "+ (information->Sex == "F" ? tr("Female") : (information->Sex == "M" ? tr("Male") : tr("Other"))));
mUI->tbxSex->setText(information->Sex == "F" ? tr("Female") : (information->Sex == "M" ? tr("Male") : tr("Other")));
mCurrentPatientUID = information->PatientUID; mCurrentPatientUID = information->PatientUID;
mAddDate = information->AddDate; mUI->lblAddDate->setText(tr("Add Date: ")+information->AddDate);
mStore.Sex = information->Sex; mUI->lblAccno->setText(tr("AccNo: ")+information->AccessionNumber);
mStore.AccessionNumber = information->AccessionNumber;
storePatientInformation(); mStore = *information;
} }
} }
void PatientDetailForm::clearPatientInformation() { void PatientDetailForm::clearPatientInformation() {
mUI->tbxID->clear(); mUI->lblPatID->clear();
mUI->tbxDob->setDate(QDate::currentDate()); mUI->lbl_DOB->clear();
mUI->tbxName->clear(); mUI->lbl_Name->clear();
mUI->tbxSex->clear(); mUI->lbl_Sex->clear();
mUI->rtbxComment->clear(); mUI->lblAddDate->clear();
mCurrentPatientUID.clear(); mUI->lblAccno->clear();
mAddDate.clear();
} }
void PatientDetailForm::storePatientInformation() { void PatientDetailForm::storePatientInformation() {
mStore.PatientUID = mCurrentPatientUID;
mStore.AddDate = mAddDate;
mStore.ID = mUI->tbxID->text();
mStore.BirthDate = mUI->tbxDob->date().toString("yyyy-MM-dd");
mStore.Name = mUI->tbxName->text();
mStore.Comment = mUI->rtbxComment->toPlainText();
} }

View File

@@ -20,6 +20,9 @@ public:
signals: signals:
void hideBtnClicked(); void hideBtnClicked();
void editClicked();
void deleteClicked();
private: private:
void storePatientInformation(); void storePatientInformation();
void reloadLanguage(); void reloadLanguage();
@@ -27,6 +30,8 @@ private:
QString mCurrentPatientUID; QString mCurrentPatientUID;
QString mAddDate; QString mAddDate;
PatientInformation mStore; PatientInformation mStore;
QToolButton *mBtnEdit;
QToolButton *mBtnDelete;
}; };
#endif // EDITPATIENTFORM_H #endif // EDITPATIENTFORM_H

View File

@@ -1,176 +1,193 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>PatientDetailForm</class> <class>PatientDetailForm</class>
<widget class="QWidget" name="PatientDetailForm"> <widget class="QWidget" name="PatientDetailForm">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>400</width>
<height>466</height> <height>466</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="rightMargin"> <property name="rightMargin">
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="QToolButton" name="hideBtn"> <widget class="QFrame" name="frame">
<property name="text"> <property name="frameShape">
<string>...</string> <enum>QFrame::StyledPanel</enum>
</property> </property>
</widget> <property name="frameShadow">
</item> <enum>QFrame::Raised</enum>
<item> </property>
<widget class="QFrame" name="frame"> <layout class="QVBoxLayout" name="verticalLayout_3">
<property name="frameShape"> <property name="spacing">
<enum>QFrame::StyledPanel</enum> <number>0</number>
</property> </property>
<property name="frameShadow"> <item>
<enum>QFrame::Raised</enum> <widget class="QToolButton" name="hideBtn">
</property> <property name="text">
<layout class="QVBoxLayout" name="verticalLayout_2"> <string>...</string>
<property name="spacing"> </property>
<number>0</number> </widget>
</property> </item>
<property name="leftMargin"> <item>
<number>0</number> <widget class="QLabel" name="lblPatInfPanel">
</property> <property name="text">
<property name="rightMargin"> <string>Patient Information</string>
<number>9</number> </property>
</property> <property name="alignment">
<item> <set>Qt::AlignCenter</set>
<widget class="QLabel" name="lbl_ID"> </property>
<property name="text"> </widget>
<string>ID</string> </item>
</property> <item>
</widget> <widget class="QFrame" name="frame_4">
</item> <property name="frameShape">
<item> <enum>QFrame::StyledPanel</enum>
<widget class="ULineEdit" name="tbxID"> </property>
<property name="enabled"> <property name="frameShadow">
<bool>true</bool> <enum>QFrame::Raised</enum>
</property> </property>
<property name="readOnly"> <layout class="QHBoxLayout" name="horizontalLayout">
<bool>true</bool> <property name="leftMargin">
</property> <number>0</number>
</widget> </property>
</item> <property name="topMargin">
<item> <number>0</number>
<widget class="QLabel" name="lbl_Name"> </property>
<property name="text"> <property name="rightMargin">
<string>Name</string> <number>0</number>
</property> </property>
</widget> <property name="bottomMargin">
</item> <number>0</number>
<item> </property>
<widget class="ULineEdit" name="tbxName"> <item>
<property name="enabled"> <widget class="QLabel" name="lblIcon">
<bool>true</bool> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<property name="readOnly"> <horstretch>0</horstretch>
<bool>true</bool> <verstretch>0</verstretch>
</property> </sizepolicy>
</widget> </property>
</item> <property name="text">
<item> <string>111</string>
<widget class="QLabel" name="lbl_Sex"> </property>
<property name="text"> </widget>
<string>Gender</string> </item>
</property> <item>
</widget> <widget class="QFrame" name="frame_2">
</item> <property name="frameShape">
<item> <enum>QFrame::StyledPanel</enum>
<widget class="ULineEdit" name="tbxSex"> </property>
<property name="enabled"> <property name="frameShadow">
<bool>true</bool> <enum>QFrame::Raised</enum>
</property> </property>
<property name="readOnly"> <layout class="QVBoxLayout" name="PatinfLayout">
<bool>true</bool> <item>
</property> <widget class="QLabel" name="lbl_Name">
</widget> <property name="text">
</item> <string>Name</string>
<item> </property>
<widget class="QLabel" name="lbl_DOB"> </widget>
<property name="text"> </item>
<string>Date Of Birth</string> <item>
</property> <widget class="QLabel" name="lbl_Sex">
</widget> <property name="text">
</item> <string>Gender</string>
<item> </property>
<widget class="QDateEdit" name="tbxDob"> </widget>
<property name="enabled"> </item>
<bool>true</bool> <item>
</property> <widget class="QLabel" name="lbl_DOB">
<property name="readOnly"> <property name="text">
<bool>true</bool> <string>Date Of Birth</string>
</property> </property>
<property name="buttonSymbols"> </widget>
<enum>QAbstractSpinBox::NoButtons</enum> </item>
</property> </layout>
</widget> </widget>
</item> </item>
<item> </layout>
<widget class="QWidget" name="widget" native="true"> </widget>
<layout class="QHBoxLayout" name="horizontalLayout"> </item>
<property name="spacing"> <item>
<number>1</number> <widget class="QFrame" name="frame_3">
</property> <property name="sizePolicy">
<property name="leftMargin"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<number>0</number> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="topMargin"> </sizepolicy>
<number>0</number> </property>
</property> <property name="minimumSize">
<property name="rightMargin"> <size>
<number>0</number> <width>0</width>
</property> <height>200</height>
<property name="bottomMargin"> </size>
<number>0</number> </property>
</property> <property name="frameShape">
</layout> <enum>QFrame::StyledPanel</enum>
</widget> </property>
</item> <property name="frameShadow">
<item> <enum>QFrame::Raised</enum>
<widget class="QLabel" name="lbl_Comment"> </property>
<property name="text"> <layout class="QVBoxLayout" name="verticalLayout_2">
<string>Comment</string> <property name="spacing">
</property> <number>30</number>
</widget> </property>
</item> <property name="leftMargin">
<item> <number>0</number>
<widget class="UTextEdit" name="rtbxComment"> </property>
<property name="enabled"> <property name="bottomMargin">
<bool>true</bool> <number>0</number>
</property> </property>
<property name="readOnly"> <item>
<bool>true</bool> <widget class="QLabel" name="lblPatID">
</property> <property name="text">
</widget> <string/>
</item> </property>
</layout> </widget>
</widget> </item>
</item> <item>
<item> <widget class="QLabel" name="lblAccno">
<widget class="QWidget" name="editcmdWidget" native="true"/> <property name="text">
</item> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</layout> </property>
</widget> </widget>
<customwidgets> </item>
<customwidget> <item>
<class>ULineEdit</class> <widget class="QLabel" name="lblAddDate">
<extends>QLineEdit</extends> <property name="text">
<header>components/ULineEdit.h</header> <string/>
</customwidget> </property>
<customwidget> </widget>
<class>UTextEdit</class> </item>
<extends>QTextEdit</extends> </layout>
<header>components/UTextEdit.h</header> </widget>
</customwidget> </item>
</customwidgets> <item>
<resources/> <spacer name="verticalSpacer">
<connections/> <property name="orientation">
</ui> <enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@@ -40,6 +40,15 @@ public:
: QObject() : QObject()
{ {
} }
void operator=(const PatientInformation& other){
this->PatientUID = other.PatientUID;
this->ID = other.ID;
this->Name = other.Name;
this->BirthDate = other.BirthDate;
this->Sex = other.Sex;
this->Comment = other.Comment;
this->AccessionNumber = other.AccessionNumber;
}
QString ScheduledStartDate; QString ScheduledStartDate;
PatientInformation* Copy() PatientInformation* Copy()
{ {

View File

@@ -25,8 +25,8 @@ SelectFormWidget::SelectFormWidget(QWidget* parent)
, mBtnAccount(new QToolButton(this)) , mBtnAccount(new QToolButton(this))
, mBtnWorklist(new QToolButton(this)) , mBtnWorklist(new QToolButton(this))
, mBtnAdd(new QToolButton(this)) , mBtnAdd(new QToolButton(this))
, mBtnEdit(new QToolButton(this)) // , mBtnEdit(new QToolButton(this))
, mBtnDelete(new QToolButton(this)) // , mBtnDelete(new QToolButton(this))
, mBtnSelect(new QToolButton(this)) , mBtnSelect(new QToolButton(this))
, mPatTable(new SlideTableView(this)) , mPatTable(new SlideTableView(this))
, mModel(nullptr) , mModel(nullptr)
@@ -44,9 +44,9 @@ SelectFormWidget::SelectFormWidget(QWidget* parent)
//Init content widget //Init content widget
auto* contentLayout = new QHBoxLayout(this->ui->contentWidget); auto* contentLayout = new QHBoxLayout(this->ui->contentWidget);
contentLayout->setContentsMargins(0, 0, 0, 0); contentLayout->setContentsMargins(0, 0, 0, 0);
initTableView(contentLayout);
addVerticalLine(contentLayout);
initDetailPanel(contentLayout); initDetailPanel(contentLayout);
addVerticalLine(contentLayout);
initTableView(contentLayout);
//select default row 0 //select default row 0
if (mModel->rowCount() > 0) if (mModel->rowCount() > 0)
{ {
@@ -70,18 +70,15 @@ SelectFormWidget::SelectFormWidget(QWidget* parent)
void SelectFormWidget::prepareButtons(bool disableALL) { void SelectFormWidget::prepareButtons(bool disableALL) {
bool stateFlag = (mPatTable->currentIndex().row() >= 0); bool stateFlag = (mPatTable->currentIndex().row() >= 0);
mBtnSelect->setEnabled(stateFlag && !disableALL); mBtnSelect->setEnabled(stateFlag && !disableALL);
mBtnDelete->setEnabled(stateFlag && !disableALL); // mBtnDelete->setEnabled(stateFlag && !disableALL);
mBtnEdit->setEnabled(stateFlag && !disableALL); // mBtnEdit->setEnabled(stateFlag && !disableALL);
mBtnAdd->setEnabled(!disableALL); mBtnAdd->setEnabled(!disableALL);
} }
void SelectFormWidget::initGeneralButtons(QHBoxLayout *layout) { void SelectFormWidget::initGeneralButtons(QHBoxLayout *layout) {
mBtnAccount->setObjectName("btnAccount"); mBtnAccount->setObjectName("btnAccount");
mBtnWorklist->setObjectName("btnWorklist");
mBtnAccount->setText(tr("Account")); mBtnAccount->setText(tr("Account"));
mBtnWorklist->setText(tr("Worklist"));
layout->addWidget(mBtnAccount); layout->addWidget(mBtnAccount);
layout->addWidget(mBtnWorklist);
// mBtn account slot // mBtn account slot
connect(mBtnAccount, &QToolButton::clicked, DialogManager::Default(),&DialogManager::requestEditSelfAccount); connect(mBtnAccount, &QToolButton::clicked, DialogManager::Default(),&DialogManager::requestEditSelfAccount);
connect(mBtnWorklist, &QToolButton::clicked, [&]() connect(mBtnWorklist, &QToolButton::clicked, [&]()
@@ -92,24 +89,17 @@ void SelectFormWidget::initGeneralButtons(QHBoxLayout *layout) {
void SelectFormWidget::initPatEditButtons(QHBoxLayout *layout) { void SelectFormWidget::initPatEditButtons(QHBoxLayout *layout) {
mBtnAdd->setObjectName("btnAdd"); mBtnAdd->setObjectName("btnAdd");
mBtnEdit->setObjectName("btnEdit"); mBtnWorklist->setObjectName("btnWorklist");
mBtnDelete->setObjectName("btnDelete");
mBtnSelect->setObjectName("btnSelect"); mBtnSelect->setObjectName("btnSelect");
mBtnAdd->setText(tr("Add")); mBtnAdd->setText(tr("Add"));
mBtnEdit->setText(tr("Edit"));
mBtnDelete->setText(tr("Delete"));
mBtnSelect->setText(tr("Select")); mBtnSelect->setText(tr("Select"));
mBtnWorklist->setText(tr("Worklist"));
layout->addWidget(mBtnAdd); layout->addWidget(mBtnAdd);
layout->addWidget(mBtnEdit); layout->addWidget(mBtnWorklist);
layout->addWidget(mBtnDelete);
layout->addWidget(mBtnSelect); layout->addWidget(mBtnSelect);
// btn add & edit slot // btn add slot
connect(mBtnAdd, &QToolButton::clicked, this, &SelectFormWidget::editPatient); connect(mBtnAdd, &QToolButton::clicked, this, &SelectFormWidget::editPatient);
connect(mBtnEdit, &QToolButton::clicked, this, &SelectFormWidget::editPatient);
// btn delete slot
connect(mBtnDelete, &QToolButton::clicked, this, &SelectFormWidget::delPatient);
// mBtn select slot // mBtn select slot
connect(mBtnSelect, &QToolButton::clicked, this, &SelectFormWidget::selectPatient); connect(mBtnSelect, &QToolButton::clicked, this, &SelectFormWidget::selectPatient);
@@ -172,25 +162,18 @@ void SelectFormWidget::selectPatient() {
void SelectFormWidget::initDetailPanel(QHBoxLayout *contentLayout) {// prepare edit panel void SelectFormWidget::initDetailPanel(QHBoxLayout *contentLayout) {// prepare edit panel
patientDetailForm->setObjectName("patientDetailWidget"); patientDetailForm->setObjectName("patientDetailWidget");
patientDetailForm->hide(); // patientDetailForm->hide();
contentLayout->addWidget(patientDetailForm); contentLayout->addWidget(patientDetailForm);
auto* btnShowEdit = new VerticalTextToolButton(this); auto* btnShowEdit = new VerticalTextToolButton(this);
btnShowEdit->setObjectName("btnShowPanel"); btnShowEdit->setObjectName("btnShowPanel");
btnShowEdit->setFixedHeight(225); btnShowEdit->setFixedHeight(225);
btnShowEdit->setVerticalText("Patient Detail"); btnShowEdit->setVerticalText("Patient Detail");
btnShowEdit->hide();
contentLayout->addWidget(btnShowEdit); contentLayout->addWidget(btnShowEdit);
contentLayout->setAlignment(btnShowEdit, Qt::AlignTop); contentLayout->setAlignment(btnShowEdit, Qt::AlignTop);
// btn show slot connect(patientDetailForm, &PatientDetailForm::editClicked, this, &SelectFormWidget::editPatient);
connect(btnShowEdit, &QToolButton::clicked, [=]() { connect(patientDetailForm, &PatientDetailForm::deleteClicked, this, &SelectFormWidget::delPatient);
patientDetailForm->show();
btnShowEdit->hide();
});
//btn hide slot
connect(patientDetailForm, &PatientDetailForm::hideBtnClicked, [=]() {
patientDetailForm->hide();
btnShowEdit->show();
});
} }
void SelectFormWidget::initTableView(QHBoxLayout *contentLayout) {// TableView for patient void SelectFormWidget::initTableView(QHBoxLayout *contentLayout) {// TableView for patient
@@ -213,9 +196,10 @@ void SelectFormWidget::initTableView(QHBoxLayout *contentLayout) {// TableView f
mPatTable->setColumnWidth(1, 250); mPatTable->setColumnWidth(1, 250);
mPatTable->setColumnWidth(2, 250); mPatTable->setColumnWidth(2, 250);
mPatTable->setColumnWidth(3, 250); mPatTable->setColumnWidth(3, 250);
mPatTable->setColumnWidth(4, 160); mPatTable->setColumnWidth(4, 120);
mPatTable->setColumnWidth(5, 120); mPatTable->setColumnWidth(5, 80);
mPatTable->setColumnWidth(6, 250); mPatTable->setColumnWidth(6, 120);
mPatTable->setColumnHidden(7, true);
contentLayout->addWidget(mPatTable); contentLayout->addWidget(mPatTable);
//table current row selection changing event //table current row selection changing event
connect(mPatTable, &SlideTableView::currentRowChanged, [=](int row) { connect(mPatTable, &SlideTableView::currentRowChanged, [=](int row) {

View File

@@ -390,8 +390,8 @@ QWidget#commandWidget QToolButton{
/*------SelectformWidget-----------------------------------------------------*/ /*------SelectformWidget-----------------------------------------------------*/
QWidget#patientDetailWidget { QWidget#patientDetailWidget {
min-width: 300px; min-width: 680px;
max-width: 300px; max-width: 680px;
margin-top: 5; margin-top: 5;
} }
@@ -418,6 +418,8 @@ QToolButton#btnHidePanel {
border-radius: 0; border-radius: 0;
border-top-left-radius: 10px; border-top-left-radius: 10px;
border-bottom-left-radius: 10px; border-bottom-left-radius: 10px;
min-height: 50px;
max-height: 50px;
font-size: 20px; font-size: 20px;
font-weight: normal; font-weight: normal;
background: #505050; background: #505050;
@@ -432,12 +434,53 @@ QWidget#editcmdWidget {
max-height: 83px; max-height: 83px;
} }
QLineEdit#displayLineEdit:disabled {
background-color: #3c3c3c; QLabel#displayTitle {
border-bottom-color: #4a88c7; border-bottom: 1px solid grey;
color: #fcfcfc; color: #fcfcfc;
min-height: 50px;
max-height: 50px;
font-size: 40px;
font-weight: Bold;
border-bottom: 1px solid #4a88c7;
font-weight: normal;
} }
QLabel#displayDetail {
border-bottom: 1px solid grey;
color: #fcfcfc;
min-height: 50px;
max-height: 50px;
font-size: 40px;
font-weight: Bold;
border-bottom: 1px solid #4a88c7;
font-weight: normal;
}
QLabel#PatInfTitle {
border-bottom: 1px solid grey;
color: #fcfcfc;
min-height: 80px;
max-height: 80px;
font-size: 50px;
font-weight: Bold;
margin-top: 20px;
margin-bottom: 30px;
}
QLabel#PatIcon {
border: 1px solid grey;
qproperty-pixmap:url(":/icons/patient.png");
color: #fcfcfc;
min-height: 200px;
max-height: 200px;
min-width: 200px;
max-width: 200px;
font-size: 40px;
font-weight: Bold;
}
QWidget#commandWidget QToolButton#btnAccount { QWidget#commandWidget QToolButton#btnAccount {
qproperty-icon:url(":/icons/account.png"); qproperty-icon:url(":/icons/account.png");
} }
@@ -451,10 +494,16 @@ QToolButton#btnAdd {
} }
QToolButton#btnEdit { QToolButton#btnEdit {
border:2px solid grey;
qproperty-toolButtonStyle:ToolButtonTextBesideIcon;
qproperty-iconSize:120px 120px;
qproperty-icon:url(":/icons/details.png"); qproperty-icon:url(":/icons/details.png");
} }
QToolButton#btnDelete { QToolButton#btnDelete {
border:2px solid grey;
qproperty-toolButtonStyle:ToolButtonTextBesideIcon;
qproperty-iconSize:120px 120px;
qproperty-icon:url(":/icons/close_circle.png"); qproperty-icon:url(":/icons/close_circle.png");
} }

File diff suppressed because it is too large Load Diff

View File

@@ -789,13 +789,13 @@ parameters
<message> <message>
<location filename="../SelectFormWidget.cpp" line="46"/> <location filename="../SelectFormWidget.cpp" line="46"/>
<source>Worklist</source> <source>Worklist</source>
<translation></translation> <translation>()</translation>
</message> </message>
<message> <message>
<location filename="../SelectFormWidget.cpp" line="57"/> <location filename="../SelectFormWidget.cpp" line="57"/>
<location filename="../SelectFormWidget.cpp" line="290"/> <location filename="../SelectFormWidget.cpp" line="290"/>
<source>Add</source> <source>Add</source>
<translation></translation> <translation>()</translation>
</message> </message>
<message> <message>
<location filename="../SelectFormWidget.cpp" line="58"/> <location filename="../SelectFormWidget.cpp" line="58"/>