summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/helpmanager.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-02-01 15:52:43 +0100
committerEike Ziller <eike.ziller@qt.io>2019-02-11 08:24:40 +0000
commit8309606a52c4fbb6e0e6caadc52b5f36c25fb25a (patch)
treeb55a7e593177e0173dba1b36cd57bc75f363d220 /src/plugins/coreplugin/helpmanager.cpp
parent52ff4f6f8e20f2a0305bed8ab2f1387996d52076 (diff)
downloadqt-creator-8309606a52c4fbb6e0e6caadc52b5f36c25fb25a.tar.gz
Help: Lookup in index if ID is not found
And if multiple topics are found in the index, show the topic chooser dialog that we already have for the help index. Fixes: QTCREATORBUG-12704 Task-number: QTCREATORBUG-15959 Change-Id: I7afa6f44bbecc12f602aaaa4a11209ec72399689 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/helpmanager.cpp')
-rw-r--r--src/plugins/coreplugin/helpmanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/helpmanager.cpp b/src/plugins/coreplugin/helpmanager.cpp
index 68c976fbfa..20c6adf83b 100644
--- a/src/plugins/coreplugin/helpmanager.cpp
+++ b/src/plugins/coreplugin/helpmanager.cpp
@@ -91,6 +91,11 @@ QMap<QString, QUrl> linksForIdentifier(const QString &id)
return checkInstance() ? m_instance->linksForIdentifier(id) : QMap<QString, QUrl>();
}
+QMap<QString, QUrl> linksForKeyword(const QString &keyword)
+{
+ return checkInstance() ? m_instance->linksForKeyword(keyword) : QMap<QString, QUrl>();
+}
+
QByteArray fileData(const QUrl &url)
{
return checkInstance() ? m_instance->fileData(url) : QByteArray();