diff --git a/bin/defaultstyle.qss b/bin/defaultstyle.qss index 1610765..b466b95 100644 --- a/bin/defaultstyle.qss +++ b/bin/defaultstyle.qss @@ -1,3 +1,12 @@ +QPushButton#systemsetting{border-image:url(:/image/index_bg_setting_char.png);} + QPushButton#systemsetting:hover{border-image:url(:/image/index_bg_setting_hover.png);} + QPushButton#systemsetting:pressed{border-image:url(:/image/index_bg_setting_checked.png);} +QPushButton#egg{border-image:url(:/image/index_bg_EEG_char.png);} + QPushButton#egg:hover{border-image:url(:/image/index_bg_EEG_hover.png);} + QPushButton#egg:pressed{border-image:url(:/image/index_bg_EEG_checked.png);} +QPushButton#dataprocess{border-image:url(:/image/index_bg_data_char.png);} + QPushButton#dataprocess:hover{border-image:url(:/image/index_bg_data_hover.png);} + QPushButton#dataprocess:pressed{border-image:url(:/image/index_bg_data_checked.png);} QLineEdit { border: 1px solid #ABCDA0; @@ -45,8 +54,6 @@ color: black; background-color: white; border:1px solid black; } -QPushButton -{border:1px solid black;} QGroupBox { background-color: #4F4F4F; @@ -60,27 +67,66 @@ QDateEdit border: 1px solid rgb(22,63,23); color: black; } -QPushButton + +QPushButton#ok,#cancel { + border:1px solid black; background: white; border-radius:10px; padding:7px 10px; } -QPushButton:hover + +QPushButton#ok,#cancel +:hover { background: #0d9ddb; border-radius:10px; padding:7px 10px; } -QPushButton:pressed + +QPushButton#ok,#cancel +:pressed { background: #0d9aab; border-radius:10px; padding:7px 10px; } -QPushButton:checked + +QPushButton#ok,#cancel +:checked { background: #0d9ddb; border-radius:10px; padding:7px 10px; -}; +} + +QPushButton#open +{ + background: white; + border-radius:10px; +padding:7px 10px; + } + +QPushButton#open +:hover +{ + background: rgb(85, 85, 85); + border-radius:10px; +padding:7px 10px; +} + +QPushButton#open +:pressed +{ + background: rgb(80, 80, 80); +border-radius:10px; +padding:7px 10px; + } + +QPushButton#open +:checked +{ + background: #0d9ddb; + border-radius:10px; + padding:7px 10px; +} \ No newline at end of file diff --git a/bin/xyylMCWEACSystem.exe b/bin/xyylMCWEACSystem.exe index 2550f2b..ffe69ad 100644 Binary files a/bin/xyylMCWEACSystem.exe and b/bin/xyylMCWEACSystem.exe differ diff --git a/xyylMCWEACSystem/mainwindow.cpp b/xyylMCWEACSystem/mainwindow.cpp index 097d981..b170ddd 100644 --- a/xyylMCWEACSystem/mainwindow.cpp +++ b/xyylMCWEACSystem/mainwindow.cpp @@ -35,6 +35,12 @@ void MainWindow::initLay() QHBoxLayout * hlay = new QHBoxLayout; + + m_btnSystemSetting.setObjectName("systemsetting"); + m_btnEEG.setObjectName("egg"); + m_btnDataProcess.setObjectName("dataprocess"); +#if 0 + m_btnSystemSetting.setStyleSheet("border-image:url(:/image/index_bg_setting_char.png);}"); m_btnEEG.setStyleSheet("border-image:url(:/image/index_bg_EEG_char.png);}"); m_btnDataProcess.setStyleSheet("border-image:url(:/image/index_bg_data_char.png);}"); @@ -53,6 +59,7 @@ void MainWindow::initLay() "QPushButton:hover{border-image:url(:/image/index_bg_data_hover.png);}" "QPushButton:pressed{border-image:url(:/image/index_bg_data_checked.png);}" ); +#endif m_btnSystemSetting.setMaximumSize(QSize(400,300)); m_btnEEG.setMaximumSize(QSize(400,300)); m_btnDataProcess.setMaximumSize(QSize(400,300)); diff --git a/xyylMCWEACSystem/medicalrecordmanager.cpp b/xyylMCWEACSystem/medicalrecordmanager.cpp index 7471a47..d092baf 100644 --- a/xyylMCWEACSystem/medicalrecordmanager.cpp +++ b/xyylMCWEACSystem/medicalrecordmanager.cpp @@ -14,6 +14,8 @@ MedicalRecordManager::MedicalRecordManager(QWidget * parent):QWidget(parent) m_labMedRecManager.setStyleSheet("QLabel { font-size: 14px;\ color: rgb(13,157,219); }\ "); +m_btnOpen.setObjectName("open"); +#if 0 m_btnOpen.setStyleSheet("QPushButton{\ background: white;\ border-radius:10px;padding:7px 10px;\ @@ -30,6 +32,7 @@ MedicalRecordManager::MedicalRecordManager(QWidget * parent):QWidget(parent) background: #0d9ddb;\ border-radius:10px;padding:7px 10px;\ }"); +#endif m_btnEdit.setStyleSheet("QPushButton{\ background: white;\ color: green;\ diff --git a/xyylMCWEACSystem/medicalrecordwidget.cpp b/xyylMCWEACSystem/medicalrecordwidget.cpp index 7c5db0c..cb0dbc9 100644 --- a/xyylMCWEACSystem/medicalrecordwidget.cpp +++ b/xyylMCWEACSystem/medicalrecordwidget.cpp @@ -110,7 +110,8 @@ void MedicalRecordWidget::init() m_labDiagnosticRecord.setFixedHeight(30); m_btnOk.setText(tr("保存")); m_btnCancel.setText(tr("取消")); - + m_btnOk.setObjectName("ok"); + m_btnCancel.setObjectName("cancel"); int iwidth = QFontMetrics(this->font()).width("Laterality"); //m_labCheckNum.setFixedWidth(iwidth); // m_labName.setFixedWidth(iwidth);