Tooltips: Make sure tooltip is escaped (for rich text) when appending html.

This commit is contained in:
Leandro Melo
2010-09-23 10:29:13 +02:00
parent 2a86cb134a
commit 6d3539962f
2 changed files with 7 additions and 3 deletions

View File

@@ -152,8 +152,10 @@ void BaseHoverHandler::decorateToolTip()
if (lastHelpItemIdentified().isValid()) {
const QString &contents = lastHelpItemIdentified().extractContent(false);
if (!contents.isEmpty())
if (!contents.isEmpty()) {
setToolTip(Qt::escape(toolTip()));
appendToolTip(contents);
}
addF1ToToolTip();
}
}