aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basehoverhandler.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-03-04 16:17:08 +0100
committerEike Ziller <eike.ziller@qt.io>2019-03-05 10:33:51 +0000
commit71c6ad7f9eaf97de40cad6d7269b333066a7b3f0 (patch)
treea6b98908c86a4920d68acf6586d3ee28d8386d76 /src/plugins/texteditor/basehoverhandler.cpp
parent90bc1c91daf2a17de1a5f0da223488583d8bf7dc (diff)
Help: Improve handling of results from index lookup
If help is only found by looking up in the index, show a selection dialog to the user even if there is only one result. Otherwise we create the impression that we really think that the help we find is the correct one. Also do not add the help text to the tool tip in this case. Test case: struct Foo { static void objectCreated() {} }; Change-Id: I9579302843ea2923e06f56f4b646dd101f183b3f Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/basehoverhandler.cpp')
-rw-r--r--src/plugins/texteditor/basehoverhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/basehoverhandler.cpp b/src/plugins/texteditor/basehoverhandler.cpp
index 72e35ba5bb..92dae73d59 100644
--- a/src/plugins/texteditor/basehoverhandler.cpp
+++ b/src/plugins/texteditor/basehoverhandler.cpp
@@ -145,7 +145,7 @@ void BaseHoverHandler::decorateToolTip()
if (Qt::mightBeRichText(toolTip()))
setToolTip(toolTip().toHtmlEscaped());
- if (lastHelpItemIdentified().isValid()) {
+ if (lastHelpItemIdentified().isValid() && !lastHelpItemIdentified().isFuzzyMatch()) {
const QString &helpContents = lastHelpItemIdentified().extractContent(false);
if (!helpContents.isEmpty()) {
m_toolTip = toolTip().toHtmlEscaped();