diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-25 14:03:09 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-26 09:40:29 +0100 |
commit | ba3415e0bd602ef1aacd856061311d7f93f5a7de (patch) | |
tree | 07abe85b856e52e098f8e1a19a9ce84f249e8df7 /examples/help | |
parent | 21692d3b181be15c7e8859302f2274c9dd7150e3 (diff) |
Don't use deprecated QLibrary::location
Use QLibrary::path instead to silence compiler warnings.
Change-Id: Ib39ab1528f6060ae37dddfaf6b69e420c37bcd35
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'examples/help')
-rw-r--r-- | examples/help/contextsensitivehelp/helpbrowser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |