Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
6d353996
Commit
6d353996
authored
Sep 23, 2010
by
Leandro Melo
Browse files
Tooltips: Make sure tooltip is escaped (for rich text) when appending html.
parent
2a86cb13
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cpphoverhandler.cpp
View file @
6d353996
...
...
@@ -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
();
}
...
...
src/plugins/texteditor/basehoverhandler.cpp
View file @
6d353996
...
...
@@ -152,8 +152,10 @@ void BaseHoverHandler::decorateToolTip()
if
(
lastHelpItemIdentified
().
isValid
())
{
const
QString
&
contents
=
lastHelpItemIdentified
().
extractContent
(
false
);
if
(
!
contents
.
isEmpty
())
if
(
!
contents
.
isEmpty
())
{
setToolTip
(
Qt
::
escape
(
toolTip
()));
appendToolTip
(
contents
);
}
addF1ToToolTip
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment