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/demos/tweetsearch | |
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/demos/tweetsearch')
-rw-r--r-- | examples/quick/demos/tweetsearch/main.cpp | 2 | ||||
-rw-r--r-- | examples/quick/demos/tweetsearch/tweetsearch.pro | 5 | ||||
-rw-r--r-- | examples/quick/demos/tweetsearch/tweetsearch.qrc | 19 |
3 files changed, 22 insertions, 4 deletions
diff --git a/examples/quick/demos/tweetsearch/main.cpp b/examples/quick/demos/tweetsearch/main.cpp index 8b1d59679c..6253bc2f6b 100644 --- a/examples/quick/demos/tweetsearch/main.cpp +++ b/examples/quick/demos/tweetsearch/main.cpp @@ -38,4 +38,4 @@ ** ****************************************************************************/ #include "../../shared/shared.h" -DECLARATIVE_EXAMPLE_MAIN(tweetsearch) +DECLARATIVE_EXAMPLE_MAIN(demos/tweetsearch/tweetsearch) diff --git a/examples/quick/demos/tweetsearch/tweetsearch.pro b/examples/quick/demos/tweetsearch/tweetsearch.pro index 887c05af88..b063cc4106 100644 --- a/examples/quick/demos/tweetsearch/tweetsearch.pro +++ b/examples/quick/demos/tweetsearch/tweetsearch.pro @@ -2,8 +2,7 @@ TEMPLATE = app QT += quick qml SOURCES += main.cpp +RESOURCES += tweetsearch.qrc target.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/tweetsearch -qml.files = tweetsearch.qml content -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/tweetsearch -INSTALLS += target qml +INSTALLS += target diff --git a/examples/quick/demos/tweetsearch/tweetsearch.qrc b/examples/quick/demos/tweetsearch/tweetsearch.qrc new file mode 100644 index 0000000000..b23c3c5537 --- /dev/null +++ b/examples/quick/demos/tweetsearch/tweetsearch.qrc @@ -0,0 +1,19 @@ +<RCC> + <qresource prefix="/demos/tweetsearch"> + <file>tweetsearch.qml</file> + <file>content/FlipBar.qml</file> + <file>content/LineInput.qml</file> + <file>content/ListFooter.qml</file> + <file>content/ListHeader.qml</file> + <file>content/SearchDelegate.qml</file> + <file>content/TweetDelegate.qml</file> + <file>content/tweetsearch.js</file> + <file>content/TweetsModel.qml</file> + <file>content/resources/anonymous.png</file> + <file>content/resources/bird-anim-sprites.png</file> + <file>content/resources/icon-clear.png</file> + <file>content/resources/icon-loading.png</file> + <file>content/resources/icon-refresh.png</file> + <file>content/resources/icon-search.png</file> + </qresource> +</RCC> |