X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fstyledlabel.cpp;h=4aac9945989f96392621bec12bef1469e4625297;hb=dae6003f55206168e6d3c5cbace84e5b0c65990c;hp=af294c40d5c8c0e7ddf1dd379103154bd422a7e1;hpb=9d54503555534a2c554f09a33df6afa33d6308ec;p=quassel.git diff --git a/src/uisupport/styledlabel.cpp b/src/uisupport/styledlabel.cpp index af294c40..4aac9945 100644 --- a/src/uisupport/styledlabel.cpp +++ b/src/uisupport/styledlabel.cpp @@ -156,7 +156,11 @@ void StyledLabel::setText(const QString &text) void StyledLabel::updateToolTip() { if (frameRect().width() - 2*frameWidth() < _layout.minimumWidth()) +#if QT_VERSION < 0x050000 setToolTip(QString("%1").arg(Qt::escape(_layout.text()))); // only rich text gets wordwrapped! +#else + setToolTip(QString("%1").arg(_layout.text().toHtmlEscaped())); // only rich text gets wordwrapped! +#endif else setToolTip(QString()); }