From 040504da64aa5c623d2ab5907f8d36003ba57e9f Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sun, 23 Feb 2020 13:42:14 +0100 Subject: Load QM files from assets: URLs on Android Summary: This works with both the old and the new way of Qt's asset deployment, ie. with Qt 5.13 and Qt 5.14. Reviewers: apol Reviewed By: apol Subscribers: apol, kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Maniphest Tasks: T12520 Differential Revision: https://phabricator.kde.org/D27596 --- modules/ECMQmLoader.cpp.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ECMQmLoader.cpp.in') diff --git a/modules/ECMQmLoader.cpp.in b/modules/ECMQmLoader.cpp.in index 05c1a593..dcd601e1 100644 --- a/modules/ECMQmLoader.cpp.in +++ b/modules/ECMQmLoader.cpp.in @@ -44,7 +44,7 @@ namespace { QString subPath = QStringLiteral("locale/") + localeDirName + QStringLiteral("/LC_MESSAGES/@QM_LOADER_CATALOG_NAME@.qm"); #if defined(Q_OS_ANDROID) - const QString fullPath = QDir::homePath() + QStringLiteral("/../qt-reserved-files/share/") + subPath; + const QString fullPath = QStringLiteral("assets:/share/") + subPath; if (!QFile::exists(fullPath)) { return false; } -- cgit v1.2.1