aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-10-25 15:19:33 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-10-26 20:09:50 +0000
commit022dd303d7691655bb8effe518685c7bcde71584 (patch)
tree886f681603f11f9cde7296becc5c47881f9b7943 /examples/qml
parent30b4086f8fcdcd54dd46b7153876ea06216e1def (diff)
Examples: Fix qmake version of qml-i18n example
Now that we load the QML file from a different resource directory we have to adapt the resource paths in qmake, too. Amends commit 69fce1185f2ba3b474871e38b3b5b3161a9f72ee. Pick-to: 6.5 Change-Id: I25f3e0f1f77ad365426b859c5adc08b429976da3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 4dd7f9a10233c24ed35b7b1366ba5f8860096a6e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/qml')
-rw-r--r--examples/qml/qml-i18n/qml-i18n.pro1
-rw-r--r--examples/qml/qml-i18n/qml-i18n.qrc2
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/qml/qml-i18n/qml-i18n.pro b/examples/qml/qml-i18n/qml-i18n.pro
index 847c741b00..a69f370afc 100644
--- a/examples/qml/qml-i18n/qml-i18n.pro
+++ b/examples/qml/qml-i18n/qml-i18n.pro
@@ -8,6 +8,7 @@ RESOURCES += qml-i18n.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/qml/qml-i18n
INSTALLS += target
+QM_FILES_RESOURCE_PREFIX = /qt/qml/translated/i18n/
CONFIG += lrelease embed_translations
TRANSLATIONS += \
diff --git a/examples/qml/qml-i18n/qml-i18n.qrc b/examples/qml/qml-i18n/qml-i18n.qrc
index 3a505b1665..94a8d32d64 100644
--- a/examples/qml/qml-i18n/qml-i18n.qrc
+++ b/examples/qml/qml-i18n/qml-i18n.qrc
@@ -1,5 +1,5 @@
<RCC>
- <qresource prefix="/">
+ <qresource prefix="/qt/qml/translated">
<file>qml-i18n.qml</file>
</qresource>
</RCC>