只是主逻辑跳转、样式更新、布局调节

This commit is contained in:
work-zym\zhangyiming 2024-11-14 17:49:22 +08:00
parent 19fd6cd93b
commit 4701869d39
4 changed files with 27 additions and 4 deletions

Binary file not shown.

View File

@ -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

View File

@ -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);
}
}

View File

@ -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