From ba3415e0bd602ef1aacd856061311d7f93f5a7de Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Thu, 25 Mar 2021 14:03:09 +0100 Subject: Don't use deprecated QLibrary::location Use QLibrary::path instead to silence compiler warnings. Change-Id: Ib39ab1528f6060ae37dddfaf6b69e420c37bcd35 Reviewed-by: hjk --- examples/help/contextsensitivehelp/helpbrowser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/help') diff --git a/examples/help/contextsensitivehelp/helpbrowser.cpp b/examples/help/contextsensitivehelp/helpbrowser.cpp index f0cc4a1d7..4ff4b5c98 100644 --- a/examples/help/contextsensitivehelp/helpbrowser.cpp +++ b/examples/help/contextsensitivehelp/helpbrowser.cpp @@ -58,7 +58,7 @@ HelpBrowser::HelpBrowser(QWidget *parent) : QTextBrowser(parent) { - QString collectionFile = QLibraryInfo::location(QLibraryInfo::ExamplesPath) + QString collectionFile = QLibraryInfo::path(QLibraryInfo::ExamplesPath) + QLatin1String("/help/contextsensitivehelp/docs/wateringmachine.qhc"); m_helpEngine = new QHelpEngineCore(collectionFile, this); -- cgit v1.2.3