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/imageelements | |
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/imageelements')
-rw-r--r-- | examples/quick/imageelements/imageelements.pro | 7 | ||||
-rw-r--r-- | examples/quick/imageelements/imageelements.qrc | 23 | ||||
-rw-r--r-- | examples/quick/imageelements/main.cpp | 2 |
3 files changed, 28 insertions, 4 deletions
diff --git a/examples/quick/imageelements/imageelements.pro b/examples/quick/imageelements/imageelements.pro index 281b44f112..4d1c6f0a95 100644 --- a/examples/quick/imageelements/imageelements.pro +++ b/examples/quick/imageelements/imageelements.pro @@ -2,8 +2,9 @@ TEMPLATE = app QT += quick qml SOURCES += main.cpp +RESOURCES += \ + imageelements.qrc \ + ../shared/shared.qrc target.path = $$[QT_INSTALL_EXAMPLES]/quick/imageelements -qml.files = *.qml content -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/imageelements -INSTALLS += target qml +INSTALLS += target diff --git a/examples/quick/imageelements/imageelements.qrc b/examples/quick/imageelements/imageelements.qrc new file mode 100644 index 0000000000..ef8a9e52cb --- /dev/null +++ b/examples/quick/imageelements/imageelements.qrc @@ -0,0 +1,23 @@ +<RCC> + <qresource prefix="/imageelements"> + <file>content/arrow.png</file> + <file>content/BearSheet.png</file> + <file>content/BorderImageSelector.qml</file> + <file>content/bw.png</file> + <file>content/colors-round.sci</file> + <file>content/colors-stretch.sci</file> + <file>content/colors.png</file> + <file>content/ImageCell.qml</file> + <file>content/MyBorderImage.qml</file> + <file>content/qt-logo.png</file> + <file>content/shadow.png</file> + <file>content/ShadowRectangle.qml</file> + <file>content/speaker.png</file> + <file>imageelements.qml</file> + <file>animatedsprite.qml</file> + <file>borderimage.qml</file> + <file>image.qml</file> + <file>shadows.qml</file> + <file>spritesequence.qml</file> + </qresource> +</RCC> diff --git a/examples/quick/imageelements/main.cpp b/examples/quick/imageelements/main.cpp index aa624e2229..ab7d5215fa 100644 --- a/examples/quick/imageelements/main.cpp +++ b/examples/quick/imageelements/main.cpp @@ -38,4 +38,4 @@ ** ****************************************************************************/ #include "../shared/shared.h" -DECLARATIVE_EXAMPLE_MAIN(imageelements) +DECLARATIVE_EXAMPLE_MAIN(imageelements/imageelements) |