Skip to content

Commit ca0b739

Browse files
authoredMay 24, 2019
Merge pull request #10090 from qgis/backport-10081-to-release-3_4
[Backport release-3_4] [maptips] restore wrapping of the long lines (fix #21388)
2 parents c16a98d + a87b46b commit ca0b739

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/gui/qgsmaptip.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
106106

107107
backgroundColor = mWidget->palette().base().color().name();
108108
strokeColor = mWidget->palette().shadow().color().name();
109-
mWidget->setStyleSheet( QString(
109+
mWidget->setStyleSheet( QStringLiteral(
110110
".QWidget{"
111111
"border: 1px solid %1;"
112112
"background-color: %2;}" ).arg(
@@ -126,17 +126,16 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
126126
return;
127127
}
128128

129-
bodyStyle = QString(
129+
bodyStyle = QStringLiteral(
130130
"background-color: %1;"
131131
"margin: 0;"
132-
"white-space: nowrap;"
133132
"font: %2pt \"%3\";" ).arg( backgroundColor ).arg( mFontSize ).arg( mFontFamily );
134133

135-
containerStyle = QString(
134+
containerStyle = QStringLiteral(
136135
"display: inline-block;"
137136
"margin: 0px" );
138137

139-
tipHtml = QString(
138+
tipHtml = QStringLiteral(
140139
"<html>"
141140
"<body style='%1'>"
142141
"<div id='QgsWebViewContainer' style='%2'>%3</div>"

0 commit comments

Comments
 (0)
Please sign in to comment.