summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-04-20 06:14:29 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-04-20 06:14:29 (GMT)
commita9a42f51ca7079652b16ba8883a8d0f69f82c1e6 (patch)
treee8299ea27eff6a9087782f869aa4208b73fc862f /demos
parent3f37769fffe250fc9ec65c725e05fefe9c85c08a (diff)
downloadQt-a9a42f51ca7079652b16ba8883a8d0f69f82c1e6.zip
Qt-a9a42f51ca7079652b16ba8883a8d0f69f82c1e6.tar.gz
Qt-a9a42f51ca7079652b16ba8883a8d0f69f82c1e6.tar.bz2
Fix API call for multiple tags.
Spec says comma, not eg. space separated.
Diffstat (limited to 'demos')
-rw-r--r--demos/declarative/flickr/common/RssModel.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/declarative/flickr/common/RssModel.qml b/demos/declarative/flickr/common/RssModel.qml
index d0960db..415a9e9 100644
--- a/demos/declarative/flickr/common/RssModel.qml
+++ b/demos/declarative/flickr/common/RssModel.qml
@@ -3,7 +3,12 @@ import Qt 4.7
XmlListModel {
property string tags : ""
- source: "http://api.flickr.com/services/feeds/photos_public.gne?"+(tags ? "tags="+tags+"&" : "")+"format=rss2"
+ function commasep(x)
+ {
+ return x.replace(' ',',');
+ }
+
+ source: "http://api.flickr.com/services/feeds/photos_public.gne?"+(tags ? "tags="+commasep(tags)+"&" : "")+"format=rss2"
query: "/rss/channel/item"
namespaceDeclarations: "declare namespace media=\"http://search.yahoo.com/mrss/\";"