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.

View File

@ -53,5 +53,14 @@
<file>image/icon_TimeConst.png</file> <file>image/icon_TimeConst.png</file>
<file>image/icon_Wavevelocity.png</file> <file>image/icon_Wavevelocity.png</file>
<file>image/icon_LowerFreq.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> </qresource>
</RCC> </RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

View File

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