diff options
Diffstat (limited to 'demos/declarative/twitter/content/RssModel.qml')
-rw-r--r-- | demos/declarative/twitter/content/RssModel.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/declarative/twitter/content/RssModel.qml b/demos/declarative/twitter/content/RssModel.qml index 144d7af..9d88bb7 100644 --- a/demos/declarative/twitter/content/RssModel.qml +++ b/demos/declarative/twitter/content/RssModel.qml @@ -11,7 +11,8 @@ Item { id: wrapper XmlListModel { id: xmlModel - source: if (wrapper.authName == ""){ + source:{ + if (wrapper.authName == ""){ ""; //Avoid worthless calls to twitter servers }else if(wrapper.mode == 'user'){ "https://"+ ((wrapper.authName!="" && wrapper.authPass!="")? (wrapper.authName+":"+wrapper.authPass+"@") : "" )+"twitter.com/statuses/user_timeline.xml?screen_name="+wrapper.tags; @@ -20,6 +21,7 @@ XmlListModel { }else{//everyone/public "http://twitter.com/statuses/public_timeline.xml"; } + } query: "/statuses/status" XmlRole { name: "statusText"; query: "text/string()" } |