diff options
author | Bartlomiej Moskal <[email protected]> | 2022-08-11 15:27:12 +0200 |
---|---|---|
committer | Bartlomiej Moskal <[email protected]> | 2022-09-16 05:23:26 +0000 |
commit | a9841877f38223ce81692b437d58a0cf07541da1 (patch) | |
tree | 257ec3bef143b0786169e4dfb5f5d9b3f4c5ba59 /examples/quickcontrols2/chattutorial/chapter4 | |
parent | f09f5ccd9b769252b08e62a538adaa31edf6b9b4 (diff) |
Examples: Fix .pro files for chattutorial
Chat Tutorial application was not able to find main.qml file when using
qmake. It was caused by cmake adaptation for using qt_add_qml_module.
The main.qml file is currently searched in the chapter directory.
To these changes also qmake configuration must be adapted.
Pick-to: 6.4 6.3 6.2
Fixes: QTCREATORBUG-27655
Change-Id: I1e92d806dbfeb17e613596f96fd24f53fb6eba1d
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Nicholas Bennett <[email protected]>
Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'examples/quickcontrols2/chattutorial/chapter4')
-rw-r--r-- | examples/quickcontrols2/chattutorial/chapter4/chapter4.pro | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/quickcontrols2/chattutorial/chapter4/chapter4.pro b/examples/quickcontrols2/chattutorial/chapter4/chapter4.pro index dd2241355b..ae8141f7f1 100644 --- a/examples/quickcontrols2/chattutorial/chapter4/chapter4.pro +++ b/examples/quickcontrols2/chattutorial/chapter4/chapter4.pro @@ -10,7 +10,7 @@ SOURCES += main.cpp \ sqlcontactmodel.cpp \ sqlconversationmodel.cpp -RESOURCES += \ +resources.files = \ ContactPage.qml \ ConversationPage.qml \ images/Albert_Einstein.png \ @@ -25,7 +25,9 @@ RESOURCES += \ images/[email protected] \ images/[email protected] \ images/[email protected] \ - main.qml \ + main.qml +resources.prefix = chapter4/ +RESOURCES += resources \ qtquickcontrols2.conf target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/chattutorial/chapter4 |