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

@@ -116,10 +116,12 @@ void CppHoverHandler::decorateToolTip()
if (help.isValid()) {
const QString &contents = help.extractContent(false);
if (!contents.isEmpty()) {
if (help.category() == TextEditor::HelpItem::ClassOrNamespace)
if (help.category() == TextEditor::HelpItem::ClassOrNamespace) {
setToolTip(Qt::escape(toolTip()));
appendToolTip(contents);
else
} else {
setToolTip(contents);
}
}
addF1ToToolTip();
}