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/chapter3/chapter3.pro | |
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/chapter3/chapter3.pro')
-rw-r--r-- | examples/quickcontrols2/chattutorial/chapter3/chapter3.pro | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/quickcontrols2/chattutorial/chapter3/chapter3.pro b/examples/quickcontrols2/chattutorial/chapter3/chapter3.pro index a5e500d9db..42adc69fe9 100644 --- a/examples/quickcontrols2/chattutorial/chapter3/chapter3.pro +++ b/examples/quickcontrols2/chattutorial/chapter3/chapter3.pro @@ -5,7 +5,7 @@ CONFIG += c++11 SOURCES += main.cpp -RESOURCES += \ +resources.files = \ ContactPage.qml \ ConversationPage.qml \ images/Albert_Einstein.png \ @@ -20,7 +20,9 @@ RESOURCES += \ images/[email protected] \ images/[email protected] \ images/[email protected] \ - main.qml \ + main.qml +resources.prefix = chapter3/ +RESOURCES += resources \ qtquickcontrols2.conf target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/chattutorial/chapter3 |