aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/demos/tweetsearch/content/TweetDelegate.qml
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2013-06-21 10:50:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-26 10:16:27 +0200
commitc9ec0c206544b37139057932a6dceed88565a75f (patch)
tree90ef92716ec84e074497018e7046ae0b7521bc4d /examples/quick/demos/tweetsearch/content/TweetDelegate.qml
parent1099b26535fedbaaa134ccb63310362951fce847 (diff)
Doc: Update Tweet Search Demo to use Twitter Search API v1.1
Twitter REST API v1 is no longer supported. This change updates the Tweet Search Demo to use the new version (v1.1). Specifically, - Use of OAuth tokens (authentication required in v1.1) - JSON parsing for results instead of XML - Use of url/hashtag/username entities returned in search results Also, update the documentation to discuss authentication and registering the application to dev.twitter.com. Task-number: QTBUG-31745 Change-Id: I00cd7b07f065babb03483daabe8df22f22995c29 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'examples/quick/demos/tweetsearch/content/TweetDelegate.qml')
-rw-r--r--examples/quick/demos/tweetsearch/content/TweetDelegate.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/demos/tweetsearch/content/TweetDelegate.qml b/examples/quick/demos/tweetsearch/content/TweetDelegate.qml
index 8cd22110d4..e8bfff437b 100644
--- a/examples/quick/demos/tweetsearch/content/TweetDelegate.qml
+++ b/examples/quick/demos/tweetsearch/content/TweetDelegate.qml
@@ -103,7 +103,7 @@ Item {
Text {
id: name
- text: Helper.realName(model.name)
+ text: model.name
anchors { left: avatar.right; leftMargin: 10; top: avatar.top; topMargin: -3 }
font.pixelSize: 12
font.bold: true
@@ -121,7 +121,7 @@ Item {
color: "#adebff"
linkColor: "white"
onLinkActivated: {
- var tag = link.split("http://search.twitter.com/search?q=%23")
+ var tag = link.split("https://twitter.com/search?q=%23")
var user = link.split("https://twitter.com/")
if (tag[1] != undefined) {
mainListView.positionViewAtBeginning()
@@ -166,7 +166,7 @@ Item {
Text {
id: username
- text: Helper.twitterName(model.name)
+ text: model.twitterName
x: 10; anchors { top: avatar2.top; topMargin: -3 }
font.pixelSize: 12
font.bold: true