summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cpphoverhandler.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-09-23 10:29:13 +0200
committerLeandro Melo <leandro.melo@nokia.com>2010-09-23 10:32:05 +0200
commit6d3539962fa39eacc691181fd4e359ac03d6c506 (patch)
treee1d7ac4da4a3bba9e95c0d18fd5c5983bfa1a418 /src/plugins/cppeditor/cpphoverhandler.cpp
parent2a86cb134a5204ca5103dac32b3212ed416a89e2 (diff)
downloadqt-creator-6d3539962fa39eacc691181fd4e359ac03d6c506.tar.gz
Tooltips: Make sure tooltip is escaped (for rich text) when appending html.
Diffstat (limited to 'src/plugins/cppeditor/cpphoverhandler.cpp')
-rw-r--r--src/plugins/cppeditor/cpphoverhandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp
index 39512eca2d..2168bc9e2d 100644
--- a/src/plugins/cppeditor/cpphoverhandler.cpp
+++ b/src/plugins/cppeditor/cpphoverhandler.cpp
@@ -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();
}