1 增加ui新给的图片 2 对新图的样式进行调节

This commit is contained in:
work-zym\zhangyiming 2024-12-05 17:46:21 +08:00
parent a72e1e657d
commit d78da30964
12 changed files with 29 additions and 72 deletions

Binary file not shown.

@ -53,5 +53,14 @@
<file>image/icon_TimeConst.png</file>
<file>image/icon_Wavevelocity.png</file>
<file>image/icon_LowerFreq.png</file>
<file>image/EGG_icon_DeleteSh_checked.png</file>
<file>image/EGG_icon_DeleteSh_hover.png</file>
<file>image/EGG_icon_Modify.png</file>
<file>image/EGG_icon_Modify_checked.png</file>
<file>image/EGG_icon_Modify_hover.png</file>
<file>image/EGG_icon_newShec.png</file>
<file>image/EGG_icon_newShec_checked.png</file>
<file>image/EGG_icon_newShec_hover.png</file>
<file>image/EGG_icond_DeleteSh.png</file>
</qresource>
</RCC>

Binary file not shown.

After

(image error) Size: 896 B

Binary file not shown.

After

(image error) Size: 884 B

Binary file not shown.

After

(image error) Size: 1.3 KiB

Binary file not shown.

After

(image error) Size: 1.2 KiB

Binary file not shown.

After

(image error) Size: 1.1 KiB

Binary file not shown.

After

(image error) Size: 964 B

Binary file not shown.

After

(image error) Size: 964 B

Binary file not shown.

After

(image error) Size: 894 B

Binary file not shown.

After

(image error) Size: 927 B

@ -25,78 +25,26 @@ LeadScheme::~LeadScheme()
void LeadScheme::init()
{
m_btnNew.setText("新建");
m_btndelete.setText("删除");
m_btnCancel.setText("取消");
m_btnOK.setText("修改");
m_btnNew.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_btndelete.setStyleSheet("QPushButton{\
background: red;\
color: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;\
color:blue;\
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_btnOK.setStyleSheet("QPushButton{\
background: green;\
color: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;\
}");
QSize sizetemp(60,60);
m_btnOK.setFixedSize(sizetemp);
m_btndelete.setFixedSize(sizetemp);
m_btnNew.setFixedSize(sizetemp);
// m_btnNew.setText("新建");
// m_btndelete.setText("删除");
// m_btnCancel.setText("取消");
// m_btnOK.setText("修改");
m_btnOK.setStyleSheet("QPushButton{border-image:url(:/image/EGG_icon_Modify.png);}"
"QPushButton:hover{border-image:url(:/image/EGG_icon_Modify_hover.png);}"
"QPushButton:pressed{border-image:url(:/image/EGG_icon_Modify_checked.png);}"
);
m_btndelete.setStyleSheet("QPushButton{border-image:url(:/image/EGG_icond_DeleteSh.png);}"
"QPushButton:hover{border-image:url(:/image/EGG_icon_DeleteSh_hover.png);}"
"QPushButton:pressed{border-image:url(:/image/EGG_icon_DeleteSh_checked.png);}"
);
m_btnNew.setStyleSheet("QPushButton{border-image:url(:/image/EGG_icon_newShec.png);}"
"QPushButton:hover{border-image:url(:/image/EGG_icon_newShec_hover.png);}"
"QPushButton:pressed{border-image:url(:/image/EGG_icon_newShec_checked.png);}"
);
}
bool LeadScheme::initconnect()