diff --git a/src/SelectFormWidget.cpp b/src/SelectFormWidget.cpp
index 756189e..547c459 100644
--- a/src/SelectFormWidget.cpp
+++ b/src/SelectFormWidget.cpp
@@ -247,7 +247,6 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
dialog.setAlertMessage(QString(tr("Delete Patient \"%1\" ?")).arg(pat_name));
if (dialog.exec() != QDialog::Accepted) return;
// need delete clear edit panel detail
- edit_patient->setEditEnable(false);
edit_patient->clearPatientInformation();
model->setData(model->index(table->currentIndex().row(), PatientInformationEnum::Flag), 9);
diff --git a/src/editpatientform.cpp b/src/editpatientform.cpp
index 4745d5f..31ffaa5 100644
--- a/src/editpatientform.cpp
+++ b/src/editpatientform.cpp
@@ -14,13 +14,6 @@ EditPatientForm::EditPatientForm(QWidget* parent) :
{
// this->layout()->setContentsMargins(5,5,5,5);
ui->setupUi(this);
- //ui->lbl_Sex->setText(tr("Gender"));
- QHBoxLayout* sexlayout = new QHBoxLayout(ui->sexpanelwidget);
- sexlayout->setMargin(6);
- ADD_TOOL_SIZE_BTN_TO_LAYOUT(F, ":/icons/female_d.png", 30, sexlayout);
- ADD_TOOL_SIZE_BTN_TO_LAYOUT(M, ":/icons/male_d.png", 30, sexlayout);
- btnF->setText(tr("Female"));
- btnM->setText(tr("Male"));
ui->hideBtn->setSizePolicy(QSizePolicy::Policy::Expanding,QSizePolicy::Policy::Preferred);
ui->hideBtn->setObjectName("hideeditBtn");
@@ -31,63 +24,24 @@ EditPatientForm::EditPatientForm(QWidget* parent) :
connect(ui->hideBtn,&QToolButton::clicked,[=](){
emit hideBtnClicked();
});
-
- // btnFemale->setToolButtonStyle(Qt::ToolButtonIconOnly);
- // btnMale->setToolButtonStyle(Qt::ToolButtonIconOnly);
-
- btnF->setObjectName("sexBtn");
- btnM->setObjectName("sexBtn");
- //btnF->setText("Female");
- //btnM->setText("Male");
- ui->sexpanelwidget->setEnabled(editEnable);
- btnF->setEnabled(editEnable);
- btnM->setEnabled(editEnable);
- btnF->setCheckable(true);
- btnM->setCheckable(true);
- QButtonGroup* group = new QButtonGroup(this);
- group->addButton(btnF);
- group->addButton(btnM);
- btnF->setChecked(true);
- btnFemale = btnF;
- btnMale = btnM;
- QHBoxLayout* layout = new QHBoxLayout(this->ui->editcmdWidget);
-
- ADD_TOOL_BTN(Cancel, ":/icons/close_circle.png");
- ADD_TOOL_BTN(Accpet, ":/icons/selected.png");
- btnCancel->setText(tr("Cancel"));
- btnAccpet->setText(tr("Accept"));
- btnCancel->setEnabled(editEnable);
- btnCancel->setToolButtonStyle(Qt::ToolButtonIconOnly);
- btnCancel->setIcon(QIcon(editEnable ? ":/icons/close_circle.png" : ":/icons/close_circle_d.png"));
- btnAccpet->setEnabled(editEnable);
- btnAccpet->setToolButtonStyle(Qt::ToolButtonIconOnly);
- btnAccpet->setIcon(QIcon(editEnable ? ":/icons/selected.png" : ":/icons/selected_d.png"));
- btnEditAccept = btnAccpet;
- btnEditCancel = btnCancel;
- connect(btnEditCancel, &QToolButton::clicked, [=]() {
- clearPatientInformation();
- this->setEditEnable(false);
- restorePatientInformation();
- emit editCancel();
- });
- connect(btnEditAccept, &QToolButton::clicked, [=]() {
- if (ui->tbx_ID->text().isEmpty())return;
- if (ui->tbx_Name->text().isEmpty())return;
- storePatientInformation();
- bool result = true;
- emit editAccept(getPatientInformation(), result);
- if (result) this->setEditEnable(false);
- });
ui->tbx_Dob->setDisplayFormat("yyyy/MM/dd");
- connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
+ ui->tbx_ID->setEnabled(false);
+ ui->tbx_ID->setObjectName("display_tbx");
+ ui->tbx_Dob->setEnabled(false);
+ ui->tbx_Dob->setObjectName("display_tbx");
+ ui->tbx_Name->setEnabled(false);
+ ui->tbx_Name->setObjectName("display_tbx");
+ ui->tbx_Sex->setEnabled(false);
+ ui->tbx_Sex->setObjectName("display_tbx");
+ ui->rtbx_Comment->setEnabled(false);
+ ui->rtbx_Comment->setObjectName("display_tbx");
+
+ connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
ui->retranslateUi(this);
- btnF->setText(tr("Female"));
- btnM->setText(tr("Male"));
- btnCancel->setText(tr("Cancel"));
- btnAccpet->setText(tr("Accept"));
- });
+ ui->tbx_Sex->setText(store.Sex == "F"?tr("Female"):(store.Sex=="M"?tr("Male"):tr("Other")));
+ });
@@ -105,10 +59,10 @@ void EditPatientForm::setPatientInformation(PatientInformation* information) {
ui->tbx_Dob->setDate(QDate::fromString(information->BirthDate, "yyyy-MM-dd"));
ui->tbx_Name->setText(information->Name);
ui->rtbx_Comment->setText(information->Comment);
- btnFemale->setChecked(information->Sex == "F");
- btnMale->setChecked(information->Sex != "F");
+ ui->tbx_Sex->setText(information->Sex == "F"?tr("Female"):(information->Sex=="M"?tr("Male"):tr("Other")));
currentPatientUID = information->PatientUID;
AddDate = information->AddDate;
+ store.Sex = information->Sex;
storePatientInformation();
}
}
@@ -117,51 +71,18 @@ void EditPatientForm::clearPatientInformation() {
ui->tbx_ID->setText("");
ui->tbx_Dob->setDate(QDate::currentDate());
ui->tbx_Name->setText("");
- btnFemale->setChecked(true);
- btnMale->setChecked(false);
+ ui->tbx_Sex->setText("");
ui->rtbx_Comment->setText("");
currentPatientUID = "";
AddDate = "";
}
-void EditPatientForm::setEditEnable(bool enable) {
- ui->tbx_ID->setEnabled(enable);
- ui->tbx_Dob->setEnabled(enable);
- ui->tbx_Name->setEnabled(enable);
- ui->sexpanelwidget->setEnabled(enable);
- btnFemale->setEnabled(enable);
- btnFemale->setIcon(QIcon(enable ? ":/icons/female.png" : ":/icons/female_d.png"));
- btnMale->setEnabled(enable);
- btnMale->setIcon(QIcon(enable ? ":/icons/male.png" : ":/icons/male_d.png"));
- ui->rtbx_Comment->setEnabled(enable);
- btnEditAccept->setEnabled(enable);
- btnEditCancel->setEnabled(enable);
- btnEditCancel->setIcon(QIcon(enable ? ":/icons/close_circle.png" : ":/icons/close_circle_d.png"));
- btnEditAccept->setIcon(QIcon(enable ? ":/icons/selected.png" : ":/icons/selected_d.png"));
- editEnable = enable;
- // ui->->setEnabled(enable);
-}
-
void EditPatientForm::storePatientInformation() {
store.PatientUID = currentPatientUID;
store.AddDate = AddDate;
store.ID = ui->tbx_ID->text();
store.BirthDate = ui->tbx_Dob->date().toString("yyyy-MM-dd");
store.Name = ui->tbx_Name->text();
- store.Sex = btnFemale->isChecked() ? "F" : "M";
store.Comment = ui->rtbx_Comment->toPlainText();
- qDebug() << store.PatientUID << "," << store.ID << "," << store.BirthDate << "," << store.Name << "," << store.Sex;
}
-void EditPatientForm::restorePatientInformation() {
- currentPatientUID = store.PatientUID;
- AddDate = store.AddDate;
- ui->tbx_ID->setText(store.ID);
- ui->tbx_Dob->setDate(QDate::fromString(store.BirthDate, "yyyy-MM-dd"));
- ui->tbx_Name->setText(store.Name);
- ui->rtbx_Comment->setText(store.Comment);
- btnFemale->setChecked(store.Sex == "F");
- btnMale->setChecked(store.Sex != "F");
- // ui->cb_Sex->setCurrentText(store.Sex=="F"?"Female":(store.Name=="M"?"Male":"Other"));
-
-}
diff --git a/src/editpatientform.h b/src/editpatientform.h
index 012155a..e5cb4f0 100644
--- a/src/editpatientform.h
+++ b/src/editpatientform.h
@@ -29,6 +29,10 @@ enum PatientInformationEnum{
#undef ADD_PATIENT_PROPERTY
};
+/**
+ * @brief this class was designed to be a edit form,
+ * but now has been change to a detail display class.
+ */
class PatientInformation:public QObject{
Q_OBJECT
public:
@@ -65,9 +69,8 @@ public:
}
void clearPatientInformation();
void storePatientInformation();
- void restorePatientInformation();
- void setEditEnable(bool enable);
- signals:
+
+signals:
void editAccept(PatientInformation * detail,bool & accept);
void editCancel();
signals:
@@ -77,11 +80,6 @@ private:
QString currentPatientUID;
QString AddDate;
PatientInformation store;
- bool editEnable=false;
- QToolButton* btnEditAccept;
- QToolButton* btnEditCancel;
- QToolButton* btnFemale;
- QToolButton* btnMale;
};
#endif // EDITPATIENTFORM_H
diff --git a/src/editpatientform.ui b/src/editpatientform.ui
index 990d93b..467d2b8 100644
--- a/src/editpatientform.ui
+++ b/src/editpatientform.ui
@@ -13,22 +13,7 @@
Form
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
+
-
@@ -37,113 +22,116 @@
-
-
-
- 6
+
+
+ ID
-
- 6
+
+
+ -
+
+
+ true
-
- 6
+
+ true
-
- 6
+
+
+ -
+
+
+ Name
-
-
-
-
- ID
-
-
-
- -
-
-
- false
-
-
-
- -
-
-
- Name
-
-
-
- -
-
-
- false
-
-
-
- -
-
-
- Gender
-
-
-
- -
-
-
- -
-
-
- Date Of Birth
-
-
-
- -
-
-
- false
-
-
- QAbstractSpinBox::NoButtons
-
-
-
- -
-
-
-
- 1
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
-
-
- -
-
-
- Comment
-
-
-
- -
-
-
- false
-
-
-
- -
-
-
-
+
+
+ -
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
+ Gender
+
+
+
+ -
+
+
+ true
+
+
+ true
+
+
+
+ -
+
+
+ Date Of Birth
+
+
+
+ -
+
+
+ true
+
+
+ true
+
+
+ QAbstractSpinBox::NoButtons
+
+
+
+ -
+
+
+
+ 1
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+
+
+ -
+
+
+ Comment
+
+
+
+ -
+
+
+ true
+
+
+ true
+
+
+
+ -
+
diff --git a/src/stylesheet/Dark2.css b/src/stylesheet/Dark2.css
index ebbb4cd..7f27114 100644
--- a/src/stylesheet/Dark2.css
+++ b/src/stylesheet/Dark2.css
@@ -1 +1 @@
-
/*------1.silver-->grey--------------------------*/
*{background-color:#3c3c3c; color:#fcfcfc;margin:0;font-size:16px;}
QWidget#need_border{border:1px solid white}
QTabBar::tab {
height:60px;
width:300px;
font-size: 25px;
background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #505050, stop: 1.0 #333333);
border: 2px solid #505050;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
min-width: 8ex;
padding: 2px;
}
QTabBar::tab:selected, QTabBar::tab:hover {
border-top:5px solid #4a88c7;
background: #505050;}
QTabWidget::pane{margin:0}
QPlainTextEdit{border:0px}
QGroupBox{border:0px}
QLabel{color:#fcfcfc; font-weight:bold; font-size:16px;}
QLineEdit{min-height:36px;max-height:36px; border:none;border-bottom:1px solid #505050;color:grey;}
QLineEdit:enabled{background-color: #505050;border-bottom-color:#4a88c7;color:#fcfcfc;}
QDateEdit{min-height:36px;max-height:36px; border:none;border-bottom:1px solid #505050;color:grey;border-radius:3px;}
QDateEdit:enabled{background-color: #505050;border-bottom-color:#4a88c7;color:#fcfcfc;}
QTextEdit{ border:1px solid #505050;color:grey;border-radius:3px;}
QTextEdit:enabled{background-color: #505050; border:1px solid #4a88c7;color:#fcfcfc;}
QComboBox{text-align:center;min-height:36px;max-height:36px; border:1px solid #505050}
QComboBox:enabled{background-color: #505050}
QComboBox::drop-down{width:20px}
QComboBox QAbstractItemView{min-width:120px;}
QComboBox QAbstractItemView::item {min-height:60px;max-height:60px; border:1px solid white;}
/*QWidget QToolButton#editvalBtn{font-size:20px;font-weight:normal;border:1px solid darkgray;background: #505050;}*/
QWidget QToolButton#editvalBtn{min-height:36px;max-height:36px;border:none;border-bottom:1px solid #505050;border-radius:0px;color:grey;}
QWidget QToolButton#editvalBtn:enabled{background-color: #505050;border-bottom-color:#4a88c7;color:#fcfcfc;}
QWidget QToolButton#showeditBtn{border-top:1px solid darkgray;
border-bottom:1px solid darkgray;
border-left:1px solid darkgray;
border-radius: 0;
border-bottom-left-radius:10px;
font-size:20px;
font-weight:normal;
background: #505050; }
QWidget QToolButton#hideeditBtn{border-top:1px solid darkgray;
border-bottom:1px solid darkgray;
border-left:1px solid darkgray;
border-radius: 0;
border-top-left-radius:10px;
border-bottom-left-radius:10px;
font-size:20px;
font-weight:normal;background: #505050; }
QWidget QToolButton{border:none;border-radius:10%;font-size:26px;
/*background: #505050;*/
background: qlineargradient(spread:pad,x1: 0.5, y1: 0, x2: 0.5, y2: 1.0,stop:0 #404040, stop:0.5 #505050,stop:1.0 #404040);
font-weight:Bold;padding:5px;}
QWidget QToolButton:disabled{border:none;color:#606060;background:#3c3c3c}
QWidget QToolButton:hover{background:#505050;}
QWidget QToolButton:checked{border:5px solid darkorange;padding:0px;}
QPushButton{border:1px solid #505050 ;padding-left:50px;padding-right:50px; border-radius:5px; min-height:28px; max-height:28px;
background:qlineargradient(spread:pad, x1:0.50, y1:0, x2:0.5, y2:1, stop:0 #505050, stop:1 #606060);}
QListView{border:none;margin:5px; font-weight:bold}
QListView::item{
/*background:#4d4d4d;*/
background: qlineargradient(spread:pad,x1: 0.5, y1: 0, x2: 0.5, y2: 1.0,stop:0 #404040, stop:0.5 #505050,stop:1.0 #404040);
min-height:30px; border:1px solid #505050; border-radius:5px}
QListView::item:selected{background:#365880;font-weight:bold;color:#fcfcfc;}
/*QListView::item:selected{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #ABAFE5, stop: 1 #8588B2);
border:1px solid #505050;
}*/
QHeaderView::down-arrow {
subcontrol-position: center right;
image: url(":/icons/arrow-down.png");
padding-right: 8px;
}
QHeaderView::up-arrow {
subcontrol-position: center right;
image: url(":/icons/arrow-up.png");
padding-right: 8px;
}
QHeaderView::section{background-color:#595959;min-height:50px;max-height:50px;font-weight:Bold; font-size:16px; border:1px solid #323232;}
QHeaderView::section:horizontal{border-bottom: 1px solid rgb(0,170,255);}
QHeaderView::section:vertical{min-height:36px;max-height:36px;}
QTableView{border:none;alternate-background-color: #595959;selection-color:#fcfcfc;selection-background-color:#0078d8}
/*-----------Specific---------------*/
QLabel#sliderPickerLabel{color:grey;padding:0;background:#505050;font-weight:normal;font-size:50px;}
QLabel#sliderSpliterLabel{color:white;padding-top:35px;font-weight:normal;font-size:50px;}
QWidget#topbarWidget{min-height:36px;max-height:36px;}
QWidget#contentWidget{border-top:1px solid #505050;}
QWidget#contentWidgetWithBBorder{border-top:1px solid #505050; border-bottom:1px solid #323232;}
QWidget#commandWidget{min-height:123px;max-height:123px;border-top:1px solid #505050; border-bottom:1px solid #323232;}
QWidget#commandWidgetnoBBorder{min-height:123px;max-height:123px;border-top:1px solid #505050; }
QLabel#logo{min-width:30px;max-width:30px}
QLabel#company{min-width:150px;max-width:150px; }
QLabel#systemMsgBar{min-width:500px;}
QLabel#warn{color:#CCCC00;background:transparent;font-size:20px;}
QWidget QWidget#statusBarWidget{min-width:300px;}
QToolButton#btn_main{border:2px solid #0078d8;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;}
QWidget#editcmdWidget{min-height:83px;max-height:83px;}
QWidget#verSpaceLine{ border-right:1px solid #0078d8;}
QWidget#topBottomLine{ border-top:2px solid #0078d8;border-bottom:2px solid #0078d8;background:transparent;}
/*-----Settings*/
QPushButton#BigBtn{
padding-left:0px;
padding-right:0px;
min-height:60px; max-height:60px;
min-width:140px; max-width:140px;
font-size: 20px;
font-weight:bold;
}
/*-----蒙版Dialog-----*/
QDialog QWidget#innerWidget{background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray);border-radius:20px;border:5px solid #0078d8; }
QDialog#MessageDialog QWidget QWidget{ background:transparent;color:#3078d8;}
QDialog#MessageDialog QWidget QWidget QLabel{ font-size:30px}
#spacer_1, #spacer_2{min-width:2px;max-width:2px;margin-top:6px;margin-bottom:6px;border-right:1px solid #0078d8;}
/*-----FormDialog-----*/
QPushButton#btnOK{background:#365880; font-weight:bold}
QDialog#formDialog{border:3px solid grey; border-radius:8px}
QWidget#slider_one{border:1px solid #505050; border-radius:8px}
QWidget#formWidget QLabel#endline{border-bottom:1px solid grey}
QWidget#formWidget{font-size:30px;}
QLabel#title{font-size:30px; border-bottom:1px solid #3078d8 }
QWidget#edit_patient{min-width:300px;max-width:300px;}
QToolButton#sexBtn{min-width:120px;max-width:120px;font-size:20px;padding:2px;}
QToolButton#sexBtn:disabled{color:grey}
QWidget#sexpanelwidget{border:1px solid #505050;}
QWidget#sexpanelwidget:enabled{background-color: #505050;}
QToolButton#sexBtn:checked{border:2px solid darkorange;padding:0px;}
/*---------Abount----------*/
QLabel#normal{color:#fcfcfc; font-weight:normal; font-size:16px;}
QDialog#loginform{background-color:#3c3c3c; color:white;margin:0;font-size:16px;}
QDialog#loginform QLabel#title{font-Size:98px;color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray);}
QLabel#warn{color:#930000;background:transparent;font-size:20px;}
QFrame#login_frame_username{min-width:700px;max-width:700px;max-height:500px;min-height:500px;
border:1px solid #0078d8;border-radius:20px;
background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0.0 darkgray, stop: 0.5 gray, stop: 1.0 darkgray);}
QDialog#loginform QLineEdit{min-height:100px;max-height:100px; border:1px solid silver;border-radius:10px;font-size:26px;}
QDialog#loginform QLineEdit:enabled{background-color: #515151}
QDialog#loginform QToolButton#btnlogin{min-height:100px;max-height:100px; min-width:border:1px solid #505050;
border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;}
QDialog#loginform QToolButton#btnlogin:hover{background:#505050;}
\ No newline at end of file
+
/*------1.silver-->grey--------------------------*/
*{background-color:#3c3c3c; color:#fcfcfc;margin:0;font-size:16px;}
QWidget#need_border{border:1px solid white}
QTabBar::tab {
height:60px;
width:300px;
font-size: 25px;
background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #505050, stop: 1.0 #333333);
border: 2px solid #505050;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
min-width: 8ex;
padding: 2px;
}
QTabBar::tab:selected, QTabBar::tab:hover {
border-top:5px solid #4a88c7;
background: #505050;}
QTabWidget::pane{margin:0}
QPlainTextEdit{border:0px}
QGroupBox{border:0px}
QLabel{color:#fcfcfc; font-weight:bold; font-size:16px;}
QLineEdit{min-height:36px;max-height:36px; border:none;border-bottom:1px solid #505050;color:grey;}
QLineEdit:enabled{background-color: #505050;border-bottom-color:#4a88c7;color:#fcfcfc;}
QLineEdit#display_tbx:disabled{background-color: #3c3c3c;border-bottom-color:#4a88c7;color:#fcfcfc;}
QDateEdit{min-height:36px;max-height:36px; border:none;border-bottom:1px solid #505050;color:grey;border-radius:3px;}
QDateEdit:disabled{background-color: #3c3c3c;border-bottom-color:#4a88c7;color:#fcfcfc;}
QTextEdit{ border:1px solid #505050;color:grey;border-radius:3px;}
QTextEdit:enabled{background-color: #505050; border:1px solid #4a88c7;color:#fcfcfc;}
QTextEdit#display_tbx:disabled{background-color: #3c3c3c; border:1px solid #4a88c7;color:#fcfcfc;}
QComboBox{text-align:center;min-height:36px;max-height:36px; border:1px solid #505050}
QComboBox:enabled{background-color: #505050}
QComboBox::drop-down{width:20px}
QComboBox QAbstractItemView{min-width:120px;}
QComboBox QAbstractItemView::item {min-height:60px;max-height:60px; border:1px solid white;}
/*QWidget QToolButton#editvalBtn{font-size:20px;font-weight:normal;border:1px solid darkgray;background: #505050;}*/
QWidget QToolButton#editvalBtn{min-height:36px;max-height:36px;border:none;border-bottom:1px solid #505050;border-radius:0px;color:grey;}
QWidget QToolButton#editvalBtn:enabled{background-color: #505050;border-bottom-color:#4a88c7;color:#fcfcfc;}
QWidget QToolButton#showeditBtn{border-top:1px solid darkgray;
border-bottom:1px solid darkgray;
border-left:1px solid darkgray;
border-radius: 0;
border-bottom-left-radius:10px;
font-size:20px;
font-weight:normal;
background: #505050; }
QWidget QToolButton#hideeditBtn{border-top:1px solid darkgray;
border-bottom:1px solid darkgray;
border-left:1px solid darkgray;
border-radius: 0;
border-top-left-radius:10px;
border-bottom-left-radius:10px;
font-size:20px;
font-weight:normal;background: #505050; }
QWidget QToolButton{border:none;border-radius:10%;font-size:26px;
/*background: #505050;*/
background: qlineargradient(spread:pad,x1: 0.5, y1: 0, x2: 0.5, y2: 1.0,stop:0 #404040, stop:0.5 #505050,stop:1.0 #404040);
font-weight:Bold;padding:5px;}
QWidget QToolButton:disabled{border:none;color:#606060;background:#3c3c3c}
QWidget QToolButton:hover{background:#505050;}
QWidget QToolButton:checked{border:5px solid darkorange;padding:0px;}
QPushButton{border:1px solid #505050 ;padding-left:50px;padding-right:50px; border-radius:5px; min-height:28px; max-height:28px;
background:qlineargradient(spread:pad, x1:0.50, y1:0, x2:0.5, y2:1, stop:0 #505050, stop:1 #606060);}
QListView{border:none;margin:5px; font-weight:bold}
QListView::item{
/*background:#4d4d4d;*/
background: qlineargradient(spread:pad,x1: 0.5, y1: 0, x2: 0.5, y2: 1.0,stop:0 #404040, stop:0.5 #505050,stop:1.0 #404040);
min-height:30px; border:1px solid #505050; border-radius:5px}
QListView::item:selected{background:#365880;font-weight:bold;color:#fcfcfc;}
/*QListView::item:selected{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #ABAFE5, stop: 1 #8588B2);
border:1px solid #505050;
}*/
QHeaderView::down-arrow {
subcontrol-position: center right;
image: url(":/icons/arrow-down.png");
padding-right: 8px;
}
QHeaderView::up-arrow {
subcontrol-position: center right;
image: url(":/icons/arrow-up.png");
padding-right: 8px;
}
QHeaderView::section{background-color:#595959;min-height:50px;max-height:50px;font-weight:Bold; font-size:16px; border:1px solid #323232;}
QHeaderView::section:horizontal{border-bottom: 1px solid rgb(0,170,255);}
QHeaderView::section:vertical{min-height:36px;max-height:36px;}
QTableView{border:none;alternate-background-color: #595959;selection-color:#fcfcfc;selection-background-color:#0078d8}
/*-----------Specific---------------*/
QLabel#sliderPickerLabel{color:grey;padding:0;background:#505050;font-weight:normal;font-size:50px;}
QLabel#sliderSpliterLabel{color:white;padding-top:35px;font-weight:normal;font-size:50px;}
QWidget#topbarWidget{min-height:36px;max-height:36px;}
QWidget#contentWidget{border-top:1px solid #505050;}
QWidget#contentWidgetWithBBorder{border-top:1px solid #505050; border-bottom:1px solid #323232;}
QWidget#commandWidget{min-height:123px;max-height:123px;border-top:1px solid #505050; border-bottom:1px solid #323232;}
QWidget#commandWidgetnoBBorder{min-height:123px;max-height:123px;border-top:1px solid #505050; }
QLabel#logo{min-width:30px;max-width:30px}
QLabel#company{min-width:150px;max-width:150px; }
QLabel#systemMsgBar{min-width:500px;}
QLabel#warn{color:#CCCC00;background:transparent;font-size:20px;}
QWidget QWidget#statusBarWidget{min-width:300px;}
QToolButton#btn_main{border:2px solid #0078d8;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;}
QWidget#editcmdWidget{min-height:83px;max-height:83px;}
QWidget#verSpaceLine{ border-right:1px solid #0078d8;}
QWidget#topBottomLine{ border-top:2px solid #0078d8;border-bottom:2px solid #0078d8;background:transparent;}
/*-----Settings*/
QPushButton#BigBtn{
padding-left:0px;
padding-right:0px;
min-height:60px; max-height:60px;
min-width:140px; max-width:140px;
font-size: 20px;
font-weight:bold;
}
/*-----蒙版Dialog-----*/
QDialog QWidget#innerWidget{background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray);border-radius:20px;border:5px solid #0078d8; }
QDialog#MessageDialog QWidget QWidget{ background:transparent;color:#3078d8;}
QDialog#MessageDialog QWidget QWidget QLabel{ font-size:30px}
#spacer_1, #spacer_2{min-width:2px;max-width:2px;margin-top:6px;margin-bottom:6px;border-right:1px solid #0078d8;}
/*-----FormDialog-----*/
QPushButton#btnOK{background:#365880; font-weight:bold}
QDialog#formDialog{border:3px solid grey; border-radius:8px}
QWidget#slider_one{border:1px solid #505050; border-radius:8px}
QWidget#formWidget QLabel#endline{border-bottom:1px solid grey}
QWidget#formWidget{font-size:30px;}
QLabel#title{font-size:30px; border-bottom:1px solid #3078d8 }
QWidget#edit_patient{min-width:300px;max-width:300px;}
QToolButton#sexBtn{min-width:120px;max-width:120px;font-size:20px;padding:2px;}
/*QToolButton#sexBtn:disabled{color:grey}*/
QWidget#sexpanelwidget{border:1px solid #505050;}
QWidget#sexpanelwidget:enabled{background-color: #505050;}
QToolButton#sexBtn:checked{border:2px solid darkorange;padding:0px;}
/*---------Abount----------*/
QLabel#normal{color:#fcfcfc; font-weight:normal; font-size:16px;}
QDialog#loginform{background-color:#3c3c3c; color:white;margin:0;font-size:16px;}
QDialog#loginform QLabel#title{font-Size:98px;color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray);}
QLabel#warn{color:#930000;background:transparent;font-size:20px;}
QFrame#login_frame_username{min-width:700px;max-width:700px;max-height:500px;min-height:500px;
border:1px solid #0078d8;border-radius:20px;
background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0.0 darkgray, stop: 0.5 gray, stop: 1.0 darkgray);}
QDialog#loginform QLineEdit{min-height:100px;max-height:100px; border:1px solid silver;border-radius:10px;font-size:26px;}
QDialog#loginform QLineEdit:enabled{background-color: #515151}
QDialog#loginform QToolButton#btnlogin{min-height:100px;max-height:100px; min-width:border:1px solid #505050;
border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;}
QDialog#loginform QToolButton#btnlogin:hover{background:#505050;}
\ No newline at end of file