summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2018-08-23 09:54:54 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-08-23 09:11:36 +0000
commite03fe19320acf41e5d6f285bbb34e2728ebc3ac8 (patch)
treeec3d9527d4e6ac53b6d5e3db6fe9b8b7432961f0 /examples
parent8183fb5b57e70628137777f1a38354a46af0a91f (diff)
Clean up resource handling in tweetsearch examples
Use the modern RESOURCES syntax in the .pro file to replace the XML file on disk. Change-Id: I3ea61d8eddb7e72cc49e8466ce23d0b08033d1bc Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/demos/tweetsearch/tweetsearch.pro21
-rw-r--r--examples/demos/tweetsearch/tweetsearch.qrc19
2 files changed, 20 insertions, 20 deletions
diff --git a/examples/demos/tweetsearch/tweetsearch.pro b/examples/demos/tweetsearch/tweetsearch.pro
index bc4a09e1e..3995a15f6 100644
--- a/examples/demos/tweetsearch/tweetsearch.pro
+++ b/examples/demos/tweetsearch/tweetsearch.pro
@@ -2,7 +2,26 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
-RESOURCES += tweetsearch.qrc
+
+content.prefix = /demos/tweetsearch
+content.files = \
+ tweetsearch.qml \
+ content/FlipBar.qml \
+ content/LineInput.qml \
+ content/ListFooter.qml \
+ content/ListHeader.qml \
+ content/SearchDelegate.qml \
+ content/TweetDelegate.qml \
+ content/tweetsearch.mjs \
+ content/TweetsModel.qml \
+ content/resources/anonymous.png \
+ content/resources/bird-anim-sprites.png \
+ content/resources/icon-clear.png \
+ content/resources/icon-loading.png \
+ content/resources/icon-refresh.png \
+ content/resources/icon-search.png
+
+RESOURCES += content
OTHER_FILES = tweetsearch.qml \
content/*.qml \
diff --git a/examples/demos/tweetsearch/tweetsearch.qrc b/examples/demos/tweetsearch/tweetsearch.qrc
deleted file mode 100644
index 253be77a2..000000000
--- a/examples/demos/tweetsearch/tweetsearch.qrc
+++ /dev/null
@@ -1,19 +0,0 @@
-<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.mjs</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>