qt5base-lts/examples/widgets/painting/composition
Joerg Bornemann 92185d417d Fix BASE argument of qt_add_resources
The BASE argument of qt_add_resources now denotes the root point of the
alias of the file.  Before, BASE was merely prepended to every file that
got passed to qt_add_resources.

Old behavior:
    qt_add_resources(app "images"
        PREFIX "/"
        BASE "../shared"
        FILES "images/button.png")

Alias is "../shared/images/button.png", and pro2cmake generated
QT_RESOURCE_ALIAS assignments to fix this.

New behavior:
    qt_add_resources(app "images"
        PREFIX "/"
        BASE "../shared"
        FILES "../shared/images/button.png")

The alias is "images/button.png".  No extra QT_RESOURCE_ALIAS assignment
is needed.

The new behavior is in effect for user projects and for Qt repositories
that define QT_USE_FIXED_QT_ADD_RESOURCE_BASE.  Qt repositories will be
ported one by one to this new behavior.  Then the old code path can be
removed.

Pick-to: 6.1
Task-number: QTBUG-86726
Change-Id: Ib895edd4df8e97b54badadd9a1c34408beff131f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2021-05-18 16:02:52 +02:00
..
.prev_CMakeLists.txt Fix BASE argument of qt_add_resources 2021-05-18 16:02:52 +02:00
CMakeLists.txt Fix BASE argument of qt_add_resources 2021-05-18 16:02:52 +02:00
composition.cpp Composition example: use std::unique_ptr instead of QScopedPointer 2019-05-15 11:03:53 +02:00
composition.h Composition example: use std::unique_ptr instead of QScopedPointer 2019-05-15 11:03:53 +02:00
composition.html Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
composition.pro Move arthurwidget based examples to new QOpenGL classes 2018-10-17 09:16:01 +00:00
composition.qrc Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
flower_alpha.jpg Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
flower.jpg Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
main.cpp Fix memory leak with arthur style 2019-05-23 15:57:51 +02:00