调整医院信息 导联方案 病历管理 病历填写以及参数设置样式
This commit is contained in:
parent
75ef0be3cc
commit
d1d37cce03
@ -5,14 +5,17 @@ QLabel#titleSystemName{font-size: 45px;font-weight: 500;font-family: 思源黑
|
||||
QPushButton#titleBtn{border-image:url(:/image/icon_exit.png);border-radius: 40px;background-color: #EEF7FD;}
|
||||
QPushButton#titleBtn:hover{border-image:url(:/image/icon_exit_hover.png);border-radius: 40px;}
|
||||
QPushButton#titleBtn:pressed{border-image:url(:/image/icon_exit_checked.png);border-radius: 40px;}
|
||||
/*mainBtn*/
|
||||
|
||||
MainBtn{border-image:url(:/image/index_bg_setting.png);background-color: transparent;}
|
||||
MainBtn:hover{border-image:url(:/image/index_bg_setting_hover.png);}
|
||||
MainBtn:pressed{border-image:url(:/image/index_bg_setting_checked.png);}
|
||||
/*---未生效*/
|
||||
|
||||
QLabel#MainTxt{font-size: 60px;font-weight: 500;color:white;background-color: transparent;}
|
||||
QLabel#MainTxtEn{font-size: 60px;font-weight:normal;color:white;background-color: transparent;}
|
||||
|
||||
QWidget#parasetting{background-color:white;border-radius: 10px;}
|
||||
|
||||
|
||||
QLineEdit
|
||||
{
|
||||
border: 1px solid #ABCDA0;
|
||||
|
Binary file not shown.
@ -25,9 +25,8 @@ void HospitalInfo::init()
|
||||
);
|
||||
|
||||
m_labHospitalInfo.setText("医院信息");;
|
||||
m_labHospitalInfo.setStyleSheet("QLabel { font-size: 14px;\
|
||||
color: rgb(13,157,219); }\
|
||||
");
|
||||
|
||||
m_labHospitalInfo.setStyleSheet("width: 128px; height: 46px;font-family: 思源黑体;font-size: 32px;font-weight: 500; color: #0D9DDB;");
|
||||
|
||||
m_labStart1.setText("*");
|
||||
m_labStart2.setText("*");
|
||||
|
@ -135,7 +135,7 @@ void LeadScheme::initLay()
|
||||
//start
|
||||
QWidget * wPoints = new QWidget;
|
||||
wPoints->setStyleSheet("QPushButton{\
|
||||
background: rgba(255, 255, 255);\
|
||||
background: rgb(255, 255, 255);\
|
||||
color: black;\
|
||||
border-radius: 8px;\
|
||||
border:0px ; \
|
||||
|
@ -11,9 +11,6 @@ MedicalRecordManager::MedicalRecordManager(QWidget * parent):QWidget(parent)
|
||||
initConnect();
|
||||
initTable();
|
||||
|
||||
m_labMedRecManager.setStyleSheet("QLabel { font-size: 14px;\
|
||||
color: rgb(13,157,219); }\
|
||||
");
|
||||
m_btnOpen.setObjectName("open");
|
||||
#if 0
|
||||
m_btnOpen.setStyleSheet("QPushButton{\
|
||||
@ -181,6 +178,8 @@ void MedicalRecordManager::init()
|
||||
m_currentPage = 0 ;
|
||||
|
||||
m_labMedRecManager.setText("病例管理");
|
||||
m_labMedRecManager.setObjectName("labMedManager");
|
||||
m_labMedRecManager.setStyleSheet("width: 136px; height: 46px;font-family: 思源黑体;font-size: 32px;font-weight: 500; color: #0D9DDB;");
|
||||
//QAction
|
||||
m_actSearch = new QAction;
|
||||
m_actSearch->setToolTip("搜索");//设置鼠标悬浮的提示
|
||||
|
@ -30,8 +30,8 @@ void MedicalRecordWidget::init()
|
||||
// setFixedSize(600,600);
|
||||
m_labStar.setText(tr("*"));
|
||||
m_labStar2.setText(tr("*"));
|
||||
m_labStar.setStyleSheet("color:red");
|
||||
m_labStar2.setStyleSheet("color:red");
|
||||
// m_labStar.setStyleSheet("color:red");
|
||||
//m_labStar2.setStyleSheet("color:red");
|
||||
#if 0
|
||||
|
||||
#else
|
||||
|
@ -83,7 +83,7 @@ bool NavListWidget::initConnect()
|
||||
#if 0
|
||||
setObjectName("NavList");
|
||||
setStyleSheet("QPushButton{\
|
||||
background: rgba(51, 71, 75);\
|
||||
background: rgb(51, 71, 75);\
|
||||
color: white;\
|
||||
border-radius: 30px;\
|
||||
font-size: 16px;\
|
||||
|
@ -1,133 +1,234 @@
|
||||
#include "parametersettingswidget.h"
|
||||
|
||||
#include <QButtonGroup>
|
||||
ParameterSettingsWidget::ParameterSettingsWidget(QWidget *parent )
|
||||
{
|
||||
|
||||
m_PerHighFreqWidget.m_labImage.setStyleSheet("border-image:url(:/image/icon_HighFreq.png);}");
|
||||
m_PerHighFreqWidget.m_labImage.setFixedSize(QSize(30,30));
|
||||
m_PerHighFreqWidget.m_labTxt.setText("高频滤波");
|
||||
m_PerHighFreqWidget.setTextList(QStringList()<<"0.05Hz"<<"0.1Hz"<<"1Hz"<<"2Hz"<<"5Hz",
|
||||
QStringList()<<"fill-in-the-Case" << "case-management" << "leading-scheme" << "Parameter setting" << "hospital-information");
|
||||
QStringList perHeighFreqstrlist;
|
||||
perHeighFreqstrlist<<"0.05Hz"<<"0.1Hz"<<"1Hz"<<"2Hz"<<"5Hz";
|
||||
QGridLayout * grid = new QGridLayout;
|
||||
QSize tempSize(30,30);
|
||||
QSize tempBtn(150,64);
|
||||
m_labSettingTxt.setFixedSize(tempBtn);
|
||||
grid->addWidget(&m_labSettingTxt,0,0,Qt::AlignHCenter);
|
||||
int row =1;
|
||||
int col =0;
|
||||
QHBoxLayout * hlay_HieghtFre = new QHBoxLayout;
|
||||
QLabel * m_labImageHeighFre= new QLabel;
|
||||
|
||||
m_PerLowerFreqWidget.setTextList(QStringList()<<"10Hz"<<"30Hz"<<"50Hz"<<"70Hz"<<"100Hz",
|
||||
QStringList()<<"fill-in-the-Case" << "case-management" << "leading-scheme" << "Parameter setting" << "hospital-information");
|
||||
m_PerLowerFreqWidget.m_labImage.setStyleSheet("border-image:url(:/image/icon_LowerFreq.png);}");
|
||||
m_PerLowerFreqWidget.m_labImage.setFixedSize(QSize(30,30));
|
||||
m_PerLowerFreqWidget.m_labTxt.setText("低频滤波");
|
||||
m_labImageHeighFre->setFixedSize(tempSize);
|
||||
m_labImageHeighFre->setStyleSheet("border-image:url(:/image/icon_HighFreq.png);}");
|
||||
QLabel * m_labTxtHeighFre= new QLabel;
|
||||
m_labTxtHeighFre->setText("高频滤波");
|
||||
hlay_HieghtFre->addStretch();
|
||||
hlay_HieghtFre->addWidget(m_labImageHeighFre);
|
||||
hlay_HieghtFre->addWidget(m_labTxtHeighFre);
|
||||
hlay_HieghtFre->addStretch();
|
||||
|
||||
m_PerTimeConst.setTextList(QStringList()<<"0.03Hz"<<"0.1Hz"<<"0.3Hz",
|
||||
QStringList()<<"fill-in-the-Case" << "case-management" << "leading-scheme" );
|
||||
m_PerTimeConst.m_labImage.setStyleSheet("border-image:url(:/image/icon_TimeConst.png);}");
|
||||
m_PerTimeConst.m_labImage.setFixedSize(QSize(30,30));
|
||||
m_PerTimeConst.m_labTxt.setText("时间常数");
|
||||
QWidget * wtemp = new QWidget;
|
||||
wtemp->setLayout(hlay_HieghtFre);
|
||||
wtemp->setFixedSize(tempBtn);
|
||||
//grid->addLayout(hlay_HieghtFre,row++,col,Qt::AlignHCenter);
|
||||
grid->addWidget(wtemp,row++,col,Qt::AlignHCenter);
|
||||
|
||||
QButtonGroup *pButtonGroup = new QButtonGroup;
|
||||
// 设置互斥
|
||||
pButtonGroup->setExclusive(true);
|
||||
// connect(pButtonGroup, SIGNAL(buttonClicked(QAbstractButton*)), this, SLOT(onButtonClicked(QAbstractButton*)));
|
||||
for (int i = 0 ;i < perHeighFreqstrlist.size();i++)
|
||||
{
|
||||
QPushButton * btn = new QPushButton;
|
||||
btn->setText(perHeighFreqstrlist.at(i));
|
||||
pButtonGroup->addButton(btn);
|
||||
grid->addWidget(btn,row++,col);
|
||||
btn->setObjectName(perHeighFreqstrlist.at(i));
|
||||
btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
btn->setFixedSize(tempBtn);
|
||||
btn->setCheckable(true);
|
||||
|
||||
}
|
||||
|
||||
//2
|
||||
row =1;
|
||||
col++;
|
||||
QStringList perLowFreqstrlist;
|
||||
perLowFreqstrlist<<"10Hz"<<"30Hz"<<"50Hz"<<"70Hz"<<"100Hz";
|
||||
|
||||
QHBoxLayout * hlay_LowertFre = new QHBoxLayout;
|
||||
QLabel * m_labImagelowerFre= new QLabel;
|
||||
m_labImagelowerFre->setStyleSheet("border-image:url(:/image/icon_LowerFreq.png);}");
|
||||
m_labImagelowerFre->setFixedSize(tempSize);
|
||||
QLabel * m_labTxtlowerFre= new QLabel;
|
||||
m_labTxtlowerFre->setText("低频滤波");
|
||||
hlay_LowertFre->addWidget(m_labImagelowerFre);
|
||||
hlay_LowertFre->addWidget(m_labTxtlowerFre);
|
||||
grid->addLayout(hlay_LowertFre,row++,col,Qt::AlignHCenter);
|
||||
pButtonGroup = new QButtonGroup;
|
||||
pButtonGroup->setExclusive(true);
|
||||
// connect(pButtonGroup, SIGNAL(buttonClicked(QAbstractButton*)), this, SLOT(onButtonClicked(QAbstractButton*)));
|
||||
for (int i = 0 ;i < perLowFreqstrlist.size();i++)
|
||||
{
|
||||
QPushButton * btn = new QPushButton;
|
||||
btn->setText(perHeighFreqstrlist.at(i));
|
||||
pButtonGroup->addButton(btn);
|
||||
grid->addWidget(btn,row++,col);
|
||||
btn->setObjectName(perLowFreqstrlist.at(i));
|
||||
btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
btn->setFixedSize(tempBtn);
|
||||
btn->setCheckable(true);
|
||||
|
||||
}
|
||||
|
||||
//3
|
||||
row =1;
|
||||
col++;
|
||||
QStringList perTimeConsttrlist;
|
||||
perTimeConsttrlist<<"0.03Hz"<<"0.1Hz"<<"0.3Hz";
|
||||
|
||||
QHBoxLayout * hlay_TimeConst = new QHBoxLayout;
|
||||
QLabel * m_labImageTimeConst= new QLabel;
|
||||
m_labImageTimeConst->setStyleSheet("border-image:url(:/image/icon_TimeConst.png);}");
|
||||
m_labImageTimeConst->setFixedSize(tempSize);
|
||||
QLabel * m_labTxtTimeConst= new QLabel;
|
||||
m_labTxtTimeConst->setText("时间常数");
|
||||
hlay_TimeConst->addWidget(m_labImageTimeConst);
|
||||
hlay_TimeConst->addWidget(m_labTxtTimeConst);
|
||||
grid->addLayout(hlay_TimeConst,row++,col,Qt::AlignHCenter);
|
||||
pButtonGroup = new QButtonGroup;
|
||||
pButtonGroup->setExclusive(true);
|
||||
// connect(pButtonGroup, SIGNAL(buttonClicked(QAbstractButton*)), this, SLOT(onButtonClicked(QAbstractButton*)));
|
||||
for (int i = 0 ;i < perTimeConsttrlist.size();i++)
|
||||
{
|
||||
QPushButton * btn = new QPushButton;
|
||||
btn->setText(perHeighFreqstrlist.at(i));
|
||||
pButtonGroup->addButton(btn);
|
||||
grid->addWidget(btn,row++,col);
|
||||
btn->setObjectName(perTimeConsttrlist.at(i));
|
||||
btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
btn->setFixedSize(tempBtn);
|
||||
btn->setCheckable(true);
|
||||
|
||||
}
|
||||
|
||||
//4
|
||||
row =1;
|
||||
col++;
|
||||
QStringList PowerFreNotchstrlist;
|
||||
PowerFreNotchstrlist<<"0.05Hz"<<"0.1Hz"<<"1Hz"<<"2Hz"<<"5Hz";
|
||||
|
||||
QHBoxLayout * hlay_PowerFreNotch = new QHBoxLayout;
|
||||
QLabel * m_labImagePowerFreNotch= new QLabel;
|
||||
m_labImagePowerFreNotch->setStyleSheet("border-image:url(:/image/icon_PowerFreNotch.png);}");
|
||||
m_labImagePowerFreNotch->setFixedSize(tempSize);
|
||||
QLabel * m_labTxtPowerFreNotch= new QLabel;
|
||||
m_labTxtPowerFreNotch->setText("工作馅波");
|
||||
hlay_PowerFreNotch->addWidget(m_labImagePowerFreNotch);
|
||||
hlay_PowerFreNotch->addWidget(m_labTxtPowerFreNotch);
|
||||
grid->addLayout(hlay_PowerFreNotch,row++,col,Qt::AlignHCenter);
|
||||
pButtonGroup = new QButtonGroup;
|
||||
pButtonGroup->setExclusive(true);
|
||||
//connect(pButtonGroup, SIGNAL(buttonClicked(QAbstractButton*)), this, SLOT(onButtonClicked(QAbstractButton*)));
|
||||
for (int i = 0 ;i < PowerFreNotchstrlist.size();i++)
|
||||
{
|
||||
QPushButton * btn = new QPushButton;
|
||||
btn->setText(PowerFreNotchstrlist.at(i));
|
||||
pButtonGroup->addButton(btn);
|
||||
grid->addWidget(btn,row++,col);
|
||||
btn->setObjectName(PowerFreNotchstrlist.at(i));
|
||||
btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
btn->setFixedSize(tempBtn);
|
||||
btn->setCheckable(true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
m_PerPowerFreNotch.setTextList(QStringList()<<"0.05Hz"<<"0.1Hz"<<"1Hz"<<"2Hz"<<"5Hz",
|
||||
QStringList()<<"fill-in-the-Case" << "case-management" << "leading-scheme" << "Parameter setting" << "hospital-information");
|
||||
m_PerPowerFreNotch.m_labImage.setStyleSheet("border-image:url(:/image/icon_PowerFreNotch.png);}");
|
||||
m_PerPowerFreNotch.m_labImage.setFixedSize(QSize(30,30));
|
||||
m_PerPowerFreNotch.m_labTxt.setText("工作馅波");
|
||||
//5
|
||||
row =1;
|
||||
col++;
|
||||
QStringList Amplitudestrlist;
|
||||
Amplitudestrlist<<"1"<<"2"<<"4"<<"8"<<"16"<<"32"<<"64";
|
||||
|
||||
m_PerAmplitude.setTextList(QStringList()<<"1"<<"2"<<"4"<<"8"<<"16"<<"32"<<"64",
|
||||
QStringList()<<"fill-in-the-Case" << "case-management" << "leading-scheme"
|
||||
<< "Parameter setting" << "hospital-information"<<"s"<<"h");
|
||||
m_PerAmplitude.m_labImage.setStyleSheet("border-image:url(:/image/icon_Amplitude.png);}");
|
||||
m_PerAmplitude.m_labImage.setFixedSize(QSize(30,30));
|
||||
m_PerAmplitude.m_labTxt.setText("波幅");
|
||||
QHBoxLayout * hlay_Amplitude = new QHBoxLayout;
|
||||
QLabel * m_labImageAmplitude= new QLabel;
|
||||
m_labImageAmplitude->setStyleSheet("border-image:url(:/image/icon_Amplitude.png);}");
|
||||
m_labImageAmplitude->setFixedSize(tempSize);
|
||||
QLabel * m_labTxtAmplitude= new QLabel;
|
||||
m_labTxtAmplitude->setText("波幅");
|
||||
hlay_Amplitude->addWidget(m_labImageAmplitude);
|
||||
hlay_Amplitude->addWidget(m_labTxtAmplitude);
|
||||
grid->addLayout(hlay_Amplitude,row++,col,Qt::AlignHCenter);
|
||||
pButtonGroup = new QButtonGroup;
|
||||
pButtonGroup->setExclusive(true);
|
||||
for (int i = 0 ;i < Amplitudestrlist.size();i++)
|
||||
{
|
||||
QPushButton * btn = new QPushButton;
|
||||
btn->setText(Amplitudestrlist.at(i));
|
||||
pButtonGroup->addButton(btn);
|
||||
grid->addWidget(btn,row++,col);
|
||||
btn->setObjectName(Amplitudestrlist.at(i));
|
||||
btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
btn->setFixedSize(tempBtn);
|
||||
btn->setCheckable(true);
|
||||
|
||||
m_PerWavevelocity.setTextList(QStringList()<<"100"<<"500"<<"1000"<<"2500"<<"5000"<<"10000"<<"15000",
|
||||
QStringList()<<"fill-in-the-Case" << "case-management" << "leading-scheme" << "Parameter setting" << "hospital-information"<<"ss"<<"kk");
|
||||
m_PerWavevelocity.m_labImage.setStyleSheet("border-image:url(:/image/icon_Wavevelocity.png);}");
|
||||
m_PerWavevelocity.m_labImage.setFixedSize(QSize(30,30));
|
||||
m_PerWavevelocity.m_labTxt.setText("波速");
|
||||
}
|
||||
|
||||
//6
|
||||
row =1;
|
||||
col++;
|
||||
QStringList Wavevelocitystrlist;
|
||||
Wavevelocitystrlist<<"100"<<"500"<<"1000"<<"2500"<<"5000"<<"10000"<<"15000";
|
||||
|
||||
QHBoxLayout * hlay_Wavevelocity = new QHBoxLayout;
|
||||
QLabel * m_labImageWavevelocity= new QLabel;
|
||||
m_labImageWavevelocity->setStyleSheet("border-image:url(:/image/icon_Amplitude.png);}");
|
||||
m_labImageWavevelocity->setFixedSize(tempSize);
|
||||
QLabel * m_labTxtWavevelocity= new QLabel;
|
||||
m_labTxtWavevelocity->setText("波速");
|
||||
hlay_Wavevelocity->addWidget(m_labImageWavevelocity);
|
||||
hlay_Wavevelocity->addWidget(m_labTxtWavevelocity);
|
||||
grid->addLayout(hlay_Wavevelocity,row++,col,Qt::AlignHCenter);
|
||||
pButtonGroup = new QButtonGroup;
|
||||
pButtonGroup->setExclusive(true);
|
||||
//connect(pButtonGroup, SIGNAL(buttonClicked(QAbstractButton*)), this, SLOT(onButtonClicked(QAbstractButton*)));
|
||||
for (int i = 0 ;i < Wavevelocitystrlist.size();i++)
|
||||
{
|
||||
QPushButton * btn = new QPushButton;
|
||||
btn->setText(Wavevelocitystrlist.at(i));
|
||||
pButtonGroup->addButton(btn);
|
||||
grid->addWidget(btn,row++,col);
|
||||
btn->setObjectName(Wavevelocitystrlist.at(i));
|
||||
btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
btn->setFixedSize(tempBtn);
|
||||
btn->setCheckable(true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
QHBoxLayout * hlay = new QHBoxLayout;
|
||||
|
||||
hlay->setSpacing(0);
|
||||
hlay->addWidget(&m_PerHighFreqWidget);
|
||||
hlay->addWidget(&m_PerLowerFreqWidget);
|
||||
hlay->addWidget(&m_PerTimeConst);
|
||||
hlay->addWidget(&m_PerPowerFreNotch);
|
||||
hlay->addWidget(&m_PerAmplitude);
|
||||
hlay->addWidget(&m_PerWavevelocity);
|
||||
|
||||
|
||||
//setContentsMargins(0,0,0,0);
|
||||
m_labSettingTxt.setStyleSheet("QLabel { font-size: 14px;\
|
||||
color: rgb(13,157,219); }\
|
||||
");
|
||||
m_labSettingTxt.setText("参数设置");
|
||||
m_labSettingTxt.setStyleSheet("font-family: 思源黑体;font-size: 32px;font-weight: 500; color: #0D9DDB;");
|
||||
|
||||
//QAction
|
||||
m_btnOK.setText("保存");
|
||||
m_btncanCel.setText("取消");
|
||||
QHBoxLayout * hlay2 = new QHBoxLayout;
|
||||
hlay2->setSpacing(0);
|
||||
hlay2->addWidget(&m_labSettingTxt);
|
||||
hlay2->addStretch();
|
||||
|
||||
QHBoxLayout * hlay3 = new QHBoxLayout;
|
||||
hlay3->addStretch();
|
||||
hlay3->addWidget(&m_btncanCel);
|
||||
hlay3->addWidget(&m_btnOK);
|
||||
hlay3->addStretch();
|
||||
|
||||
QWidget * w = new QWidget;
|
||||
w->setObjectName("parasetting");
|
||||
w->setStyleSheet("QWidget#parasetting{background-color:white;border-radius: 10px;}");
|
||||
w->setLayout(grid);
|
||||
QVBoxLayout * vlay = new QVBoxLayout;
|
||||
vlay->addLayout(hlay2);
|
||||
vlay->addLayout(hlay);
|
||||
vlay->addWidget(w);
|
||||
vlay->addLayout(hlay3);
|
||||
|
||||
setLayout(vlay);
|
||||
this->setStyleSheet("QPushButton{background-color:white; border-radius:10px;}\
|
||||
QPushButton:hover{background: #41B962; border-radius:10px;padding:7px 10px; }\
|
||||
QPushButton:pressed{ background: #41B962; border-radius:10px; padding:7px 10px; }\
|
||||
QPushButton:checked{background: #41B962;border-radius:10px;padding:7px 10px; }");
|
||||
|
||||
|
||||
|
||||
QWidget * w = new QWidget;
|
||||
|
||||
|
||||
|
||||
setStyleSheet("QWidget \
|
||||
{\
|
||||
background-color:white;\
|
||||
border-radius:10px;\
|
||||
}");
|
||||
w->setLayout(vlay);
|
||||
QVBoxLayout * hlayall = new QVBoxLayout;
|
||||
hlayall->addWidget(w);
|
||||
hlayall->addLayout(hlay3);
|
||||
setLayout(hlayall);
|
||||
|
||||
m_btnOK.setStyleSheet("QPushButton{\
|
||||
background: white;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
m_btncanCel.setStyleSheet("QPushButton{\
|
||||
background: white;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
background: #0d9ddb;\
|
||||
border-radius:10px;padding:7px 10px;\
|
||||
}");
|
||||
|
||||
m_btncanCel.setMinimumWidth(100);
|
||||
m_btnOK.setMinimumWidth(100);
|
||||
}
|
||||
ParameterSettingsWidget::~ParameterSettingsWidget()
|
||||
{
|
||||
@ -145,92 +246,5 @@ bool ParameterSettingsWidget::initConnect()
|
||||
{
|
||||
|
||||
}
|
||||
PerWidget::PerWidget(QWidget * parent):QWidget (parent)
|
||||
{
|
||||
init();
|
||||
initLay();
|
||||
}
|
||||
PerWidget::~PerWidget()
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
void PerWidget::init()
|
||||
{
|
||||
|
||||
}
|
||||
void PerWidget::initLay()
|
||||
{
|
||||
|
||||
//m_NavListWidget.setList(QStringList()<<"0.05Hz"<<"0.1Hz"<<"1Hz"<<"2Hz"<<"5Hz",
|
||||
// QStringList()<<"fill-in-the-Case" << "case-management" << "leading-scheme" << "Parameter setting" << "hospital-information");
|
||||
|
||||
m_NavListWidget.setObjectName("NavList1");
|
||||
/*
|
||||
font-size: 16px;\
|
||||
font-weight: bold;\
|
||||
*/
|
||||
|
||||
m_NavListWidget.setCustomSize(QSize(30,20));
|
||||
|
||||
m_NavListWidget.setStyleSheet("QPushButton{\
|
||||
background: rgba(255, 255, 255);\
|
||||
color: black;\
|
||||
border-radius: 8px;\
|
||||
border:0px ; \
|
||||
}\
|
||||
QPushButton:hover{\
|
||||
color: black;\
|
||||
background: rgb(255, 255, 255);\
|
||||
border-radius: 8px;\
|
||||
}\
|
||||
QPushButton:pressed{\
|
||||
color: black;\
|
||||
background: rgb(255, 255, 255);\
|
||||
border-radius: 8px;\
|
||||
}\
|
||||
QPushButton:checked{\
|
||||
color: white;\
|
||||
background: rgb(51, 144, 76);\
|
||||
border-radius: 8px;\
|
||||
}"\
|
||||
"QWidget#NavList1{background-color:rgb(255, 255, 255);}"\
|
||||
);
|
||||
// m_NavListWidget.show();
|
||||
|
||||
//setAttribute(Qt::WA_TranslucentBackground); // 背景透明
|
||||
QHBoxLayout * hlay = new QHBoxLayout;
|
||||
QFrame *line = new QFrame();
|
||||
line->setFrameShape(QFrame::VLine);
|
||||
//line->setFrameShadow(QFrame::Plain);
|
||||
|
||||
hlay->setSpacing(0);
|
||||
hlay->addWidget(&m_NavListWidget);
|
||||
hlay->addWidget(line);
|
||||
|
||||
|
||||
|
||||
QHBoxLayout * hlay2 = new QHBoxLayout;
|
||||
hlay2->addStretch();
|
||||
hlay2->addWidget(&m_labImage, 1,Qt::AlignRight);
|
||||
hlay2->addWidget(&m_labTxt, 1,Qt::AlignLeft);
|
||||
hlay2->addStretch();
|
||||
hlay2->setSpacing(0);
|
||||
|
||||
|
||||
QVBoxLayout * vlay = new QVBoxLayout;
|
||||
vlay->addLayout(hlay2);
|
||||
vlay->addLayout(hlay);
|
||||
vlay->setContentsMargins(0,0,0,0);
|
||||
setContentsMargins(0,0,0,0);
|
||||
setLayout( vlay);
|
||||
}
|
||||
void PerWidget::initConnect()
|
||||
{
|
||||
|
||||
}
|
||||
void PerWidget::setTextList(QStringList str,QStringList objNames)
|
||||
{
|
||||
m_NavListWidget.setList(str, objNames);
|
||||
}
|
||||
|
@ -5,22 +5,6 @@
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include "navlistwidget.h"
|
||||
class PerWidget:public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
PerWidget(QWidget * parent =NULL);
|
||||
~PerWidget();
|
||||
void init();
|
||||
void initLay();
|
||||
void initConnect();
|
||||
void setTextList(QStringList str,QStringList objNames);
|
||||
QLabel m_labImage;
|
||||
QLabel m_labTxt;
|
||||
private:
|
||||
QLabel m_labHighFrequencyFiltering;
|
||||
NavListWidget m_NavListWidget;
|
||||
};
|
||||
|
||||
class ParameterSettingsWidget:public QWidget
|
||||
{
|
||||
@ -37,26 +21,26 @@ private:
|
||||
QLabel m_labSettingTxt;
|
||||
|
||||
QLabel m_labHighFrequencyFiltering;
|
||||
PerWidget m_PerHighFreqWidget;
|
||||
|
||||
|
||||
//低频过滤
|
||||
QLabel m_labLowerFrequencyFiltering;
|
||||
PerWidget m_PerLowerFreqWidget;
|
||||
|
||||
|
||||
//时间常数
|
||||
QLabel m_labTimeConst;
|
||||
PerWidget m_PerTimeConst;
|
||||
|
||||
|
||||
//工频馅波 Power-frequency notch
|
||||
QLabel m_labPowerFreNotch;
|
||||
PerWidget m_PerPowerFreNotch;
|
||||
|
||||
//波幅
|
||||
QLabel m_labAmplitude;
|
||||
PerWidget m_PerAmplitude;
|
||||
|
||||
//Wave velocity
|
||||
//波速
|
||||
QLabel m_labWavevelocity;
|
||||
PerWidget m_PerWavevelocity;
|
||||
|
||||
|
||||
QPushButton m_btncanCel;
|
||||
QPushButton m_btnOK;
|
||||
|
@ -25,22 +25,15 @@ void SystemSettingWidget::init()
|
||||
this->setStyleSheet("QWidget{background: rgb(47, 61, 82);}");
|
||||
m_labDes.setText("系统设置");
|
||||
m_btnRet.setText("< 返回");
|
||||
//m_labDes.setFixedSize(QSize(330,58));
|
||||
// m_btnRet.setFixedSize(QSize(160,31));
|
||||
m_labDes.setStyleSheet("QLabel{width: 330px;height: 58px;font-family: 思源黑体;color: #555555;font-size: 40px;font-weight: 500;}");
|
||||
m_labDes.setStyleSheet("QLabel{width: 330px;height: 58px;font-family:思源黑体;color:#555555;font-size: 40px;font-weight: 500;}");
|
||||
m_btnRet.setStyleSheet("QPushButton{width: 160px;height: 31px;font-size: 40px; border:0px ; font-weight: normal;color: #666666;font-family: Source Han Sans;}");
|
||||
//m_labDes.setStyleSheet("border-image:url(:/image/systemsetting.png);}");
|
||||
//m_btnRet.setStyleSheet("border-image:url(:/image/icon_back_2.png);}");
|
||||
//m_labDes.setMaximumSize(QSize(200,30));
|
||||
// m_labDes.setMinimumSize(QSize(200,30));
|
||||
//m_btnRet.setMaximumSize(QSize(100,30));
|
||||
//m_btnRet.setMinimumSize(QSize(100,30));
|
||||
|
||||
|
||||
m_NavListWidget.setList(QStringList()<<"填写病例"<<"病例管理"<<"导联方案"<<"参数设置"<<"医院信息",
|
||||
QStringList()<<"fill-in-the-Case" << "case-management" << "leading-scheme" << "Parameter-setting" << "hospital-information");
|
||||
|
||||
m_NavListWidget.setStyleSheet("QPushButton{\
|
||||
background: rgba(51, 71, 75);\
|
||||
background: rgb(51, 71, 75);\
|
||||
color: white;\
|
||||
border-radius: 8px;\
|
||||
border:0px ; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user