summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-12-08 11:51:56 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-12-08 13:04:49 +0000
commit69cf6b536e79605dd10c4a441fa3a75496a6138d (patch)
treefa3ed561ea9ac4886a6dd461aa5bfafbf26a1b92 /src
parent7196c0a4ff3af7b28e3935ed4ec53da5ffbc6f6e (diff)
downloadqt-creator-69cf6b536e79605dd10c4a441fa3a75496a6138d.tar.gz
Clang: Fix displaying template parameters
...in the function call completion tooltip. We did not escape the HTML. Change-Id: I5c27e5c29c1b29117201e933ac172c98792cef2b Task-number: QTCREATORBUG-15286 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp b/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp
index 1123778c8f..5018f4eb4c 100644
--- a/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp
+++ b/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp
@@ -290,7 +290,7 @@ bool FunctionHintProposalWidget::updateAndCheck(const QString &prefix)
void FunctionHintProposalWidget::updateContent()
{
- d->m_hintLabel->setText(d->m_model->text(d->m_currentHint));
+ d->m_hintLabel->setText(d->m_model->text(d->m_currentHint).toHtmlEscaped());
d->m_numberLabel->setText(tr("%1 of %2").arg(d->m_currentHint + 1).arg(d->m_totalHints));
updatePosition();
}