Add WarningLabel and WarningMessageWidget to App, and add some reference event to EventCenter

This commit is contained in:
chenhuijun
2024-04-19 14:08:44 +08:00
parent 14599ba05f
commit 7dc0404481
6 changed files with 458 additions and 8 deletions

View File

@@ -258,6 +258,33 @@ QLabel#AlertDialogTitle
border-bottom: 1px solid grey;
}
/*------Global Scrollbar----------------------------------------------------------*/
QScrollBar:vertical {
background: #3c3c3c;
width: 12px;
margin-left: 1px;
margin-right: 2px;
margin-bottom: 5px;
}
QScrollBar::handle:vertical {
background: silver;
min-height: 20px;
border-radius: 3px;
padding: 2px 2px 2px 2px;
}
QScrollBar::add-line:vertical {
display: none;
background: none;
}
QScrollBar::sub-line:vertical {
display: none;
background: none;
}
/*------LoginWindow----------------------------------------------------------*/
QFrame#loginFrame {
min-width: 700px;
@@ -394,14 +421,6 @@ QLabel#link {
qproperty-scaledContents:true;
}
QLabel#ready {
min-width: 28px;
max-width: 28px;
min-height: 28px;
max-height: 28px;
qproperty-pixmap:url(":/icons/ready.png");
qproperty-scaledContents:true;
}
QLabel#company {
min-width: 150px;
@@ -412,6 +431,86 @@ QLabel#systemMsgBar {
min-width: 500px;
}
QToolButton#ready {
min-width: 28px;
max-width: 28px;
min-height: 28px;
max-height: 28px;
background: transparent;
qproperty-icon:url(":/icons/dicom/echo_suc.png");
qproperty-toolButtonStyle:ToolButtonTextBesideIcon;
qproperty-iconSize:26px 26px;
}
/*------WarningMessageWidget-------------------------------------------------*/
QWidget#WarningPanel{
min-width: 360px;
max-width: 500px;
/* background: darkgray; */
}
QWidget#WarningLabelWidget{
background: #505050;
border-radius: 5px;
padding: 5px;
padding-right: 0px;
margin-left: 2px;
}
QLabel#WarningLabelIcon{
min-height: 20px;
max-height: 20px;
margin-left: 3px;
}
QLabel#WarningLabelTitle{
font-size: 12px;
}
QLabel#WarningPanelTitle{
font-size: 20px;
border-bottom: 1px solid darkgoldenrod;
margin-left: 5px;
margin-right: 5px;
min-height: 30px;
max-height:30px;
}
QWidget#ErrorPanelContent QLabel#WarningLabelText{
font-size: 12px;
qproperty-wordWrap:true;
margin-left: 1px;
border-top: 1px solid darkgoldenrod ;
padding-top: 3px;
}
QWidget#WarningPanelContent QLabel#WarningLabelText{
font-size: 12px;
qproperty-wordWrap:true;
margin-left: 1px;
border-top: 1px solid darkgoldenrod;
padding-top: 3px;
}
QWidget#ErrorPanelContent{
border: 1px solid darkgoldenrod;
border-radius: 5px;
min-height: 300px;
max-height: 300px;
background: #323232;
}
QWidget#WarningPanelContent{
border: 1px solid darkgoldenrod;
border-radius: 5px;
min-height: 600px;
max-height: 800px;
background: #323232;
}
QToolButton#WarningPanelBtn{
font-size: 18px;
min-height: 30px;
max-height: 30px;
min-width: 120px;
max-width:120px;
border:2px solid #505050;
margin-bottom: 10px;
}
/*------TabFormWidget--------------------------------------------------------*/
TabFormWidget {
border-top: 1px solid #505050;