设置病例关闭部分的样式
This commit is contained in:
parent
e59ed0b2bc
commit
5bf9f5ff43
Binary file not shown.
@ -10,7 +10,141 @@ MedicalRecordManager::MedicalRecordManager(QWidget * parent):QWidget(parent)
|
||||
initLay();
|
||||
initConnect();
|
||||
initTable();
|
||||
m_btnOpen.setStyleSheet("QPushButton{background-color:rgb(43,144,238); border-radius:10px;padding:7px 40px;}");
|
||||
m_btnOpen.setStyleSheet("QPushButton{\
|
||||
background: white;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: rgb(85, 85, 85);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: rgb(80, 80, 80);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
m_btnEdit.setStyleSheet("QPushButton{\
|
||||
background: white;\
|
||||
color: green;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: rgb(85, 85, 85);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: rgb(80, 80, 80);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
m_btnExport.setStyleSheet("QPushButton{\
|
||||
background: white;\
|
||||
color: blue;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: rgb(85, 85, 85);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: rgb(80, 80, 80);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
m_btnDelete.setStyleSheet("QPushButton{\
|
||||
background: red;\
|
||||
color:white;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: rgb(85, 85, 85);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: rgb(80, 80, 80);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
//上一页
|
||||
m_btnUpPage.setStyleSheet("QPushButton{\
|
||||
background: white;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: rgb(85, 85, 85);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: rgb(80, 80, 80);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
//下一页
|
||||
m_btnNetPage.setStyleSheet("QPushButton{\
|
||||
background: white;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: rgb(85, 85, 85);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: rgb(80, 80, 80);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
//首页
|
||||
m_btnfirstPage.setStyleSheet("QPushButton{\
|
||||
background: white;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: rgb(85, 85, 85);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: rgb(80, 80, 80);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
//尾页
|
||||
m_btnlastPage.setStyleSheet("QPushButton{\
|
||||
background: white;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: rgb(85, 85, 85);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: rgb(80, 80, 80);\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
|
||||
}
|
||||
MedicalRecordManager::~MedicalRecordManager()
|
||||
@ -44,9 +178,9 @@ void MedicalRecordManager::init()
|
||||
//下一页
|
||||
m_btnNetPage.setText(tr("下一页"));
|
||||
//首页
|
||||
m_btnfirstPage.setText(tr(""));
|
||||
m_btnfirstPage.setText(tr("首页"));
|
||||
//尾页
|
||||
m_btnlastPage.setText(tr(""));
|
||||
m_btnlastPage.setText(tr("尾页"));
|
||||
|
||||
|
||||
}
|
||||
@ -65,9 +199,9 @@ void MedicalRecordManager::initLay()
|
||||
hlay2->addWidget(&m_btnExport);
|
||||
hlay2->addWidget(&m_btnDelete);
|
||||
hlay2->addStretch();
|
||||
hlay2->addWidget(&m_btnfirstPage);
|
||||
hlay2->addWidget(&m_btnUpPage);
|
||||
hlay2->addWidget(&m_btnNetPage);
|
||||
hlay2->addWidget(&m_btnfirstPage);
|
||||
hlay2->addWidget(&m_btnlastPage);
|
||||
|
||||
QVBoxLayout * vlay = new QVBoxLayout;
|
||||
@ -80,6 +214,10 @@ void MedicalRecordManager::initLay()
|
||||
m_btnEdit.setFixedSize(tempSize);
|
||||
m_btnExport.setFixedSize(tempSize);
|
||||
m_btnDelete.setFixedSize(tempSize);
|
||||
m_btnfirstPage.setFixedSize(tempSize);
|
||||
m_btnUpPage.setFixedSize(tempSize);
|
||||
m_btnNetPage.setFixedSize(tempSize);
|
||||
m_btnlastPage.setFixedSize(tempSize);
|
||||
}
|
||||
bool MedicalRecordManager::initConnect()
|
||||
{
|
||||
|
@ -21,6 +21,9 @@ SystemSettingWidget::~SystemSettingWidget()
|
||||
|
||||
void SystemSettingWidget::init()
|
||||
{
|
||||
m_stackedWidget.addWidget(&m_MedicalRecordWidget);
|
||||
m_stackedWidget.addWidget(&m_MedicalRecordManagerWidget);
|
||||
|
||||
//this->setStyleSheet("QWidget{background: rgb(47, 61, 82);border:0px}");
|
||||
this->setStyleSheet("QWidget{background: rgb(47, 61, 82);}");
|
||||
m_labDes.setStyleSheet("border-image:url(:/image/systemsetting.png);}");
|
||||
@ -94,11 +97,18 @@ void SystemSettingWidget::slotClickedChanged()
|
||||
}
|
||||
void SystemSettingWidget::slotClickedBtn(QString strName)
|
||||
{
|
||||
|
||||
if(strName.compare("fill-in-the-Case")==0)
|
||||
{
|
||||
m_stackedWidget.addWidget(&m_MedicalRecordWidget);
|
||||
|
||||
m_stackedWidget.setCurrentWidget(&m_MedicalRecordWidget);
|
||||
|
||||
}
|
||||
else if(strName.compare("case-management")==0)
|
||||
{
|
||||
|
||||
m_stackedWidget.setCurrentWidget(&m_MedicalRecordManagerWidget);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <QPainter>
|
||||
#include <QStackedWidget>
|
||||
#include "medicalrecordwidget.h"
|
||||
#include "medicalrecordmanager.h"
|
||||
class SystemSettingWidget: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -44,5 +45,6 @@ private:
|
||||
|
||||
|
||||
MedicalRecordWidget m_MedicalRecordWidget;
|
||||
MedicalRecordManager m_MedicalRecordManagerWidget;
|
||||
};
|
||||
#endif // SYSTEMSETTINGWIDGET_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user