diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-03-04 17:22:11 +0200 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-03-05 11:18:50 +0200 |
commit | 069afedec9e42c1d3ce6673a405337dfbc309992 (patch) | |
tree | 2429846399126e0fcafb37e22ddd7f8fd76d3b9e /examples/qml/qml-i18n/qml-i18n.pro | |
parent | 1fef24732bb5114392626a7fef956625a6cc66ac (diff) |
Examples: add .pro project for qml-i18n example
Currently only the .qmlproject is available for this project, which
won't deploy on Android, thus adding .pro project files. Also, since
the translation won't work without the *.qm files being present as
resources, those files are included by default with example.
Task-number: QTBUG-80717
Change-Id: I86ac6c4097e4207b7f62d628f9a72439e78639db
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/qml/qml-i18n/qml-i18n.pro')
-rw-r--r-- | examples/qml/qml-i18n/qml-i18n.pro | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/qml/qml-i18n/qml-i18n.pro b/examples/qml/qml-i18n/qml-i18n.pro new file mode 100644 index 0000000000..847c741b00 --- /dev/null +++ b/examples/qml/qml-i18n/qml-i18n.pro @@ -0,0 +1,17 @@ +TEMPLATE = app + +QT += quick qml +SOURCES += main.cpp + +RESOURCES += qml-i18n.qrc + +target.path = $$[QT_INSTALL_EXAMPLES]/qml/qml-i18n +INSTALLS += target + +CONFIG += lrelease embed_translations + +TRANSLATIONS += \ + i18n/base.ts \ + i18n/qml_en.ts \ + i18n/qml_en_AU.ts \ + i18n/qml_fr.ts |