diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-12-08 18:28:40 +0100 |
---|---|---|
committer | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-02-01 23:39:19 +0100 |
commit | ec452fc6e87e82d135d7ef782d5c811583d5c433 (patch) | |
tree | d23a91de87691375298ee23435fc4bd1f21a3475 /src/qml/doc/snippets | |
parent | a6d9312c99d6f80cbea7538276d2890d0cc4c760 (diff) | |
download | qtdeclarative-ec452fc6e87e82d135d7ef782d5c811583d5c433.tar.gz |
qt_add_qml_module: Make usage of AUTO_RESOURCE_PREFIX a policy
Writing AUTO_RESOURCE_PREFIX in every qt_add_qml_module call seems
rather pointless.
In addition:
- Add documentation for QTP0001.
- Adjust some of the examples to use QTP0001 policy.
- Improved the error message.
Pick-to: 6.5
Task-number: QTBUG-96233
Change-Id: I6e19a491acba97493893bf1953fca3462296c1ea
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/qml/doc/snippets')
-rw-r--r-- | src/qml/doc/snippets/qml/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/doc/snippets/qml/CMakeLists.txt b/src/qml/doc/snippets/qml/CMakeLists.txt index 5dd190d004..7c7ac116c3 100644 --- a/src/qml/doc/snippets/qml/CMakeLists.txt +++ b/src/qml/doc/snippets/qml/CMakeLists.txt @@ -1,7 +1,7 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -qt_add_library(extra_module STATIC) +qt_add_library(extra_module STATIC) qt_add_qml_module(extra_module URI "ExtraModule" VERSION 1.0 @@ -9,6 +9,7 @@ qt_add_qml_module(extra_module Extra.qml SOURCES extrathing.cpp extrathing.h + RESOURCE_PREFIX / ) add_subdirectory(ExtraModule) |