diff options
author | Kai Koehne <kai.koehne@digia.com> | 2012-12-11 14:17:34 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-12 10:32:50 +0100 |
commit | a0fb0a5dd32b031f89abe603ed07a50c74327e37 (patch) | |
tree | 04dd8b801c1e5daca81701542a8f6815c8b35274 /examples/quick/animation | |
parent | b570d384c0704ea12364e353493eeb6f1ae34cd3 (diff) |
Use resource files for most examples
Make examples shadow-build-friendly by using resource
files instead of trying to derive the qml path from
applicationDirPath().
Change-Id: I669424554c772d9b261249b366247190f5fbd8b1
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'examples/quick/animation')
-rw-r--r-- | examples/quick/animation/animation.pro | 9 | ||||
-rw-r--r-- | examples/quick/animation/animation.qrc | 22 | ||||
-rw-r--r-- | examples/quick/animation/main.cpp | 2 |
3 files changed, 28 insertions, 5 deletions
diff --git a/examples/quick/animation/animation.pro b/examples/quick/animation/animation.pro index 58e9226ea5..70d71688a4 100644 --- a/examples/quick/animation/animation.pro +++ b/examples/quick/animation/animation.pro @@ -3,8 +3,9 @@ TEMPLATE = app QT += quick qml SOURCES += main.cpp -target.path = $$[QT_INSTALL_EXAMPLES]/quick/animation -qml.files = animation.qml basics behaviors easing pathanimation pathinterpolator states -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/animation -INSTALLS += target qml +RESOURCES += \ + ../shared/shared.qrc \ + animation.qrc +target.path = $$[QT_INSTALL_EXAMPLES]/quick/animation +INSTALLS += target diff --git a/examples/quick/animation/animation.qrc b/examples/quick/animation/animation.qrc new file mode 100644 index 0000000000..d1217ac378 --- /dev/null +++ b/examples/quick/animation/animation.qrc @@ -0,0 +1,22 @@ +<RCC> + <qresource prefix="/animation"> + <file>animation.qml</file> + <file>basics/images/face-smile.png</file> + <file>basics/images/moon.png</file> + <file>basics/images/shadow.png</file> + <file>basics/images/star.png</file> + <file>basics/images/sun.png</file> + <file>basics/color-animation.qml</file> + <file>basics/property-animation.qml</file> + <file>behaviors/behavior-example.qml</file> + <file>behaviors/SideRect.qml</file> + <file>behaviors/tvtennis.qml</file> + <file>behaviors/wigglytext.qml</file> + <file>easing/easing.qml</file> + <file>pathanimation/pathanimation.qml</file> + <file>pathinterpolator/pathinterpolator.qml</file> + <file>states/qt-logo.png</file> + <file>states/states.qml</file> + <file>states/transitions.qml</file> + </qresource> +</RCC> diff --git a/examples/quick/animation/main.cpp b/examples/quick/animation/main.cpp index dc5b506888..28bf080c46 100644 --- a/examples/quick/animation/main.cpp +++ b/examples/quick/animation/main.cpp @@ -38,4 +38,4 @@ ** ****************************************************************************/ #include "../shared/shared.h" -DECLARATIVE_EXAMPLE_MAIN(animation) +DECLARATIVE_EXAMPLE_MAIN(animation/animation) |