diff options
author | Kai Koehne <[email protected]> | 2012-12-11 14:17:34 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2012-12-12 10:32:50 +0100 |
commit | a0fb0a5dd32b031f89abe603ed07a50c74327e37 (patch) | |
tree | 04dd8b801c1e5daca81701542a8f6815c8b35274 /examples/quick/text | |
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 <[email protected]>
Diffstat (limited to 'examples/quick/text')
-rw-r--r-- | examples/quick/text/main.cpp | 2 | ||||
-rw-r--r-- | examples/quick/text/text.pro | 7 | ||||
-rw-r--r-- | examples/quick/text/text.qrc | 24 |
3 files changed, 29 insertions, 4 deletions
diff --git a/examples/quick/text/main.cpp b/examples/quick/text/main.cpp index 9b3c62657b..b8f927d81e 100644 --- a/examples/quick/text/main.cpp +++ b/examples/quick/text/main.cpp @@ -38,4 +38,4 @@ ** ****************************************************************************/ #include "../shared/shared.h" -DECLARATIVE_EXAMPLE_MAIN(text) +DECLARATIVE_EXAMPLE_MAIN(text/text) diff --git a/examples/quick/text/text.pro b/examples/quick/text/text.pro index 2f78548d05..733a99367b 100644 --- a/examples/quick/text/text.pro +++ b/examples/quick/text/text.pro @@ -2,8 +2,9 @@ TEMPLATE = app QT += quick qml SOURCES += main.cpp +RESOURCES += \ + text.qrc \ + ../shared/shared.qrc target.path = $$[QT_INSTALL_EXAMPLES]/quick/text -qml.files = fonts imgtag styledtext-layout.qml text.qml textselection -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/text -INSTALLS += target qml +INSTALLS += target diff --git a/examples/quick/text/text.qrc b/examples/quick/text/text.qrc new file mode 100644 index 0000000000..f0d21627ad --- /dev/null +++ b/examples/quick/text/text.qrc @@ -0,0 +1,24 @@ +<RCC> + <qresource prefix="/text"> + <file>text.qml</file> + <file>fonts/availableFonts.qml</file> + <file>fonts/banner.qml</file> + <file>fonts/fonts.qml</file> + <file>fonts/hello.qml</file> + <file>fonts/content/fonts/tarzeau_ocr_a.ttf</file> + <file>imgtag/imgtag.qml</file> + <file>imgtag/images/face-sad.png</file> + <file>imgtag/images/face-smile-big.png</file> + <file>imgtag/images/face-smile.png</file> + <file>imgtag/images/heart200.png</file> + <file>imgtag/images/qtlogo.png</file> + <file>imgtag/images/starfish_2.png</file> + <file>textselection/textselection.qml</file> + <file>textselection/pics/endHandle.png</file> + <file>textselection/pics/endHandle.sci</file> + <file>textselection/pics/startHandle.png</file> + <file>textselection/pics/startHandle.sci</file> + <file>styledtext-layout.qml</file> + <file>imgtag/TextWithImage.qml</file> + </qresource> +</RCC> |