summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/basehoverhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/basehoverhandler.cpp')
-rw-r--r--src/plugins/texteditor/basehoverhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/basehoverhandler.cpp b/src/plugins/texteditor/basehoverhandler.cpp
index 3b0e5845ab..d382548a10 100644
--- a/src/plugins/texteditor/basehoverhandler.cpp
+++ b/src/plugins/texteditor/basehoverhandler.cpp
@@ -159,12 +159,12 @@ void BaseHoverHandler::process(BaseTextEditor *editor, int pos)
void BaseHoverHandler::decorateToolTip()
{
if (Qt::mightBeRichText(toolTip()))
- setToolTip(Qt::escape(toolTip()));
+ setToolTip(toolTip().toHtmlEscaped());
if (!isDiagnosticTooltip() && lastHelpItemIdentified().isValid()) {
const QString &contents = lastHelpItemIdentified().extractContent(false);
if (!contents.isEmpty()) {
- setToolTip(Qt::escape(toolTip()));
+ setToolTip(toolTip().toHtmlEscaped());
appendToolTip(contents);
addF1ToToolTip();
}