forked from qt-creator/qt-creator
Tooltips: Make sure tooltip is escaped (for rich text) when appending html.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user