File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
106
106
107
107
backgroundColor = mWidget ->palette ().base ().color ().name ();
108
108
strokeColor = mWidget ->palette ().shadow ().color ().name ();
109
- mWidget ->setStyleSheet ( QString (
109
+ mWidget ->setStyleSheet ( QStringLiteral (
110
110
" .QWidget{"
111
111
" border: 1px solid %1;"
112
112
" background-color: %2;}" ).arg (
@@ -126,17 +126,16 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
126
126
return ;
127
127
}
128
128
129
- bodyStyle = QString (
129
+ bodyStyle = QStringLiteral (
130
130
" background-color: %1;"
131
131
" margin: 0;"
132
- " white-space: nowrap;"
133
132
" font: %2pt \" %3\" ;" ).arg ( backgroundColor ).arg ( mFontSize ).arg ( mFontFamily );
134
133
135
- containerStyle = QString (
134
+ containerStyle = QStringLiteral (
136
135
" display: inline-block;"
137
136
" margin: 0px" );
138
137
139
- tipHtml = QString (
138
+ tipHtml = QStringLiteral (
140
139
" <html>"
141
140
" <body style='%1'>"
142
141
" <div id='QgsWebViewContainer' style='%2'>%3</div>"
You can’t perform that action at this time.
0 commit comments