diff --git a/bin/xyylMCWEACSystem.exe b/bin/xyylMCWEACSystem.exe index 72599cb..c0e83de 100644 Binary files a/bin/xyylMCWEACSystem.exe and b/bin/xyylMCWEACSystem.exe differ diff --git a/xyylMCWEACSystem/hospitalinfo.cpp b/xyylMCWEACSystem/hospitalinfo.cpp index ab98bfd..e349b75 100644 --- a/xyylMCWEACSystem/hospitalinfo.cpp +++ b/xyylMCWEACSystem/hospitalinfo.cpp @@ -16,8 +16,15 @@ HospitalInfo::~HospitalInfo() } void HospitalInfo::init() { + this->setStyleSheet("QWidget \ + {\ + background-color:white;\ + border-radius:10px;\ + }"\ + ); + m_labHospitalInfo.setText("医院信息");; - m_labHospitalInfo.setStyleSheet("QLabel { font-size: 14px;\ + m_labHospitalInfo.setStyleSheet("QLabel { font-size: 30px;\ color: rgb(13,157,219); }\ "); @@ -89,11 +96,12 @@ void HospitalInfo::initLay() { - + int width_space = 60; QHBoxLayout * hlay0 = new QHBoxLayout; hlay0->addWidget(&m_labHospitalInfo); QHBoxLayout * hlay = new QHBoxLayout; + hlay->addSpacing(width_space); hlay->addWidget(&m_labStart2); hlay->addWidget(&m_labHospitalName); hlay->addWidget(&m_editHospitalName); @@ -102,6 +110,7 @@ void HospitalInfo::initLay() //科室 QHBoxLayout * hlay1 = new QHBoxLayout; + hlay1->addSpacing(width_space); hlay1->addWidget(&m_labStart1); hlay1->addWidget(&m_labSection);// hlay1->addWidget(&m_editSection); @@ -111,6 +120,7 @@ void HospitalInfo::initLay() //用户人数 QHBoxLayout * hlay2 = new QHBoxLayout; + hlay2->addSpacing(width_space); hlay2->addWidget(&m_labUserNum); hlay2->addWidget(&m_editUserNum); hlay2->addWidget(&m_labRepasswd); @@ -121,6 +131,7 @@ void HospitalInfo::initLay() //数据名称 QHBoxLayout * hlay3 = new QHBoxLayout; + hlay3->addSpacing(width_space); hlay3->addWidget(&m_labDataBaseName); hlay3->addWidget(&m_editDataBaseName); @@ -134,18 +145,21 @@ void HospitalInfo::initLay() QVBoxLayout * vlay = new QVBoxLayout; vlay->addLayout(hlay0); + vlay->addSpacing(30); vlay->addLayout(hlay); vlay->addLayout(hlay1); vlay->addLayout(hlay2); vlay->addLayout(hlay3); + vlay->addStretch(); +#if 1 hlay0->setSpacing(0); hlay->setSpacing(0); - hlay1->setSpacing(0); + hlay1->setSpacing(0); hlay2->setSpacing(0); hlay3->setSpacing(0); hlay4->setSpacing(0); - +#endif setLayout(vlay); #if 0 diff --git a/xyylMCWEACSystem/systemsettingwidget.cpp b/xyylMCWEACSystem/systemsettingwidget.cpp index dc84cd7..a625dce 100644 --- a/xyylMCWEACSystem/systemsettingwidget.cpp +++ b/xyylMCWEACSystem/systemsettingwidget.cpp @@ -138,6 +138,13 @@ void SystemSettingWidget::slotClickedChanged() m_stackedWidget.addWidget(&m_ParameterSettingsWidget); m_stackedWidget.setCurrentWidget(&m_ParameterSettingsWidget); + }//hospital-information + else if(strName.compare("hospital-information")==0) + { + + m_stackedWidget.addWidget(&m_hospitalinformationWidget); + m_stackedWidget.setCurrentWidget(&m_hospitalinformationWidget); + } } diff --git a/xyylMCWEACSystem/systemsettingwidget.h b/xyylMCWEACSystem/systemsettingwidget.h index 50fe684..d0ec105 100644 --- a/xyylMCWEACSystem/systemsettingwidget.h +++ b/xyylMCWEACSystem/systemsettingwidget.h @@ -12,6 +12,7 @@ #include "medicalrecordwidget.h" #include "medicalrecordmanager.h" #include "parametersettingswidget.h" +#include "hospitalinfo.h" class SystemSettingWidget: public QWidget { Q_OBJECT @@ -48,5 +49,6 @@ private: MedicalRecordWidget m_MedicalRecordWidget; MedicalRecordManager m_MedicalRecordManagerWidget; ParameterSettingsWidget m_ParameterSettingsWidget; + HospitalInfo m_hospitalinformationWidget; }; #endif // SYSTEMSETTINGWIDGET_H