From 1fcc136e74f85a6eeac6508b7138a375e8ced1c5 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 24 Aug 2020 17:49:44 +0200 Subject: Remove deprecated functionality Required to get the module to compile against a new qtbase Change-Id: I4f7c6f10c94da640c1f1eec0bbbbc22bbd7cb2ea Reviewed-by: Lars Knoll --- examples/help/contextsensitivehelp/helpbrowser.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/help/contextsensitivehelp') 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 #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 links = m_helpEngine->linksForIdentifier(id); - if (links.count()) - setSource(links.constBegin().value()); + QList documents = m_helpEngine->documentsForIdentifier(id); + if (documents.count()) + setSource(documents.first().url); } } -- cgit v1.2.3