summaryrefslogtreecommitdiffstats
path: root/examples/assistant/simpletextviewer/assistant.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-25 14:03:09 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-26 09:40:29 +0100
commitba3415e0bd602ef1aacd856061311d7f93f5a7de (patch)
tree07abe85b856e52e098f8e1a19a9ce84f249e8df7 /examples/assistant/simpletextviewer/assistant.cpp
parent21692d3b181be15c7e8859302f2274c9dd7150e3 (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/assistant/simpletextviewer/assistant.cpp')
-rw-r--r--examples/assistant/simpletextviewer/assistant.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/assistant/simpletextviewer/assistant.cpp b/examples/assistant/simpletextviewer/assistant.cpp
index d222bda6e..a07b4cf49 100644
--- a/examples/assistant/simpletextviewer/assistant.cpp
+++ b/examples/assistant/simpletextviewer/assistant.cpp
@@ -89,7 +89,7 @@ QString documentationDirectory()
#ifdef SRCDIR
paths.append(QLatin1String(SRCDIR));
#endif
- paths.append(QLibraryInfo::location(QLibraryInfo::ExamplesPath));
+ paths.append(QLibraryInfo::path(QLibraryInfo::ExamplesPath));
paths.append(QCoreApplication::applicationDirPath());
paths.append(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation));
for (const auto &dir : qAsConst(paths)) {
@@ -112,7 +112,7 @@ bool Assistant::startAssistant()
}
if (m_process->state() != QProcess::Running) {
- QString app = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator();
+ QString app = QLibraryInfo::path(QLibraryInfo::BinariesPath) + QDir::separator();
#ifndef Q_OS_DARWIN
app += QLatin1String("assistant");
#else