Skip to content

Commit 0a02432

Browse files
committedOct 25, 2018
Clazy warnings
1 parent 01d2fc5 commit 0a02432

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed
 

‎src/gui/qgsmessagebaritem.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,29 +116,29 @@ void QgsMessageBarItem::writeContent()
116116
QString contentStyleSheet;
117117
if ( mLevel == Qgis::Success )
118118
{
119-
mStyleSheet = "QgsMessageBar { background-color: #dff0d8; border: 1px solid #8e998a; } "
120-
"QLabel,QTextEdit { color: black; } ";
121-
contentStyleSheet = "<style> a, a:visited, a:hover { color:#268300; } </style>";
119+
mStyleSheet = QStringLiteral( "QgsMessageBar { background-color: #dff0d8; border: 1px solid #8e998a; } "
120+
"QLabel,QTextEdit { color: black; } " );
121+
contentStyleSheet = QStringLiteral( "<style> a, a:visited, a:hover { color:#268300; } </style>" );
122122
}
123123
else if ( mLevel == Qgis::Critical )
124124
{
125-
mStyleSheet = "QgsMessageBar { background-color: #d65253; border: 1px solid #9b3d3d; } "
126-
"QLabel,QTextEdit { color: white; } ";
127-
contentStyleSheet = "<style>a, a:visited, a:hover { color:#4e0001; }</style>";
125+
mStyleSheet = QStringLiteral( "QgsMessageBar { background-color: #d65253; border: 1px solid #9b3d3d; } "
126+
"QLabel,QTextEdit { color: white; } " );
127+
contentStyleSheet = QStringLiteral( "<style>a, a:visited, a:hover { color:#4e0001; }</style>" );
128128
}
129129
else if ( mLevel == Qgis::Warning )
130130
{
131-
mStyleSheet = "QgsMessageBar { background-color: #ffc800; border: 1px solid #e0aa00; } "
132-
"QLabel,QTextEdit { color: black; } ";
133-
contentStyleSheet = "<style>a, a:visited, a:hover { color:#945a00; }</style>";
131+
mStyleSheet = QStringLiteral( "QgsMessageBar { background-color: #ffc800; border: 1px solid #e0aa00; } "
132+
"QLabel,QTextEdit { color: black; } " );
133+
contentStyleSheet = QStringLiteral( "<style>a, a:visited, a:hover { color:#945a00; }</style>" );
134134
}
135135
else if ( mLevel == Qgis::Info )
136136
{
137-
mStyleSheet = "QgsMessageBar { background-color: #e7f5fe; border: 1px solid #b9cfe4; } "
138-
"QLabel,QTextEdit { color: #2554a1; } ";
139-
contentStyleSheet = "<style>a, a:visited, a:hover { color:#3bb2fe; }</style>";
137+
mStyleSheet = QStringLiteral( "QgsMessageBar { background-color: #e7f5fe; border: 1px solid #b9cfe4; } "
138+
"QLabel,QTextEdit { color: #2554a1; } " );
139+
contentStyleSheet = QStringLiteral( "<style>a, a:visited, a:hover { color:#3bb2fe; }</style>" );
140140
}
141-
mStyleSheet += QLatin1String( "QLabel#mItemCount { font-style: italic; }" );
141+
mStyleSheet += QStringLiteral( "QLabel#mItemCount { font-style: italic; }" );
142142

143143
// TITLE AND TEXT
144144
if ( mTitle.isEmpty() && mText.isEmpty() )

0 commit comments

Comments
 (0)
Please sign in to comment.