summaryrefslogtreecommitdiffstats
path: root/examples/help/contextsensitivehelp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-08-24 17:49:44 +0200
committerLars Knoll <lars.knoll@qt.io>2020-08-24 21:37:09 +0200
commit1fcc136e74f85a6eeac6508b7138a375e8ced1c5 (patch)
tree33f974b73fa3c2d269b0183fb46109fbd50a3909 /examples/help/contextsensitivehelp
parentc3ca1f972e402281d3ec42498d3051767449a41b (diff)
Remove deprecated functionality
Required to get the module to compile against a new qtbase Change-Id: I4f7c6f10c94da640c1f1eec0bbbbc22bbd7cb2ea Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples/help/contextsensitivehelp')
-rw-r--r--examples/help/contextsensitivehelp/helpbrowser.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/help/contextsensitivehelp/helpbrowser.cpp b/examples/help/contextsensitivehelp/helpbrowser.cpp
index 0eb983c05..f0cc4a1d7 100644
--- a/examples/help/contextsensitivehelp/helpbrowser.cpp
+++ b/examples/help/contextsensitivehelp/helpbrowser.cpp
@@ -53,6 +53,7 @@
#include <QtHelp/QHelpEngineCore>
#include "helpbrowser.h"
+#include "qhelplink.h"
HelpBrowser::HelpBrowser(QWidget *parent)
: QTextBrowser(parent)
@@ -70,9 +71,9 @@ HelpBrowser::HelpBrowser(QWidget *parent)
void HelpBrowser::showHelpForKeyword(const QString &id)
{
if (m_helpEngine) {
- QMultiMap<QString, QUrl> links = m_helpEngine->linksForIdentifier(id);
- if (links.count())
- setSource(links.constBegin().value());
+ QList<QHelpLink> documents = m_helpEngine->documentsForIdentifier(id);
+ if (documents.count())
+ setSource(documents.first().url);
}
}