summaryrefslogtreecommitdiffstats
path: root/demos/declarative/twitter
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-09-03 06:49:50 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-09-03 06:49:50 (GMT)
commit00857aeee742c3c05d5286854de98820d2f5042e (patch)
tree3757642c0bea924d643c0b31d6449d1d5c830c06 /demos/declarative/twitter
parent0fb9807613291cec289e542d1aa2cbddbd22c5ab (diff)
downloadQt-00857aeee742c3c05d5286854de98820d2f5042e.zip
Qt-00857aeee742c3c05d5286854de98820d2f5042e.tar.gz
Qt-00857aeee742c3c05d5286854de98820d2f5042e.tar.bz2
Differentiate between loading and error states.
Diffstat (limited to 'demos/declarative/twitter')
-rw-r--r--demos/declarative/twitter/twitter.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/declarative/twitter/twitter.qml b/demos/declarative/twitter/twitter.qml
index 566832b..78fa47e 100644
--- a/demos/declarative/twitter/twitter.qml
+++ b/demos/declarative/twitter/twitter.qml
@@ -31,7 +31,13 @@ Item {
Image { source: "mobile/images/stripes.png"; fillMode: "Tile"; anchors.fill: parent; opacity: 0.3 }
Twitter.RssModel { id: RssModel }
- Common.Loading { anchors.centerIn: parent; visible: RssModel.status && state!='unauthed'}
+ Common.Loading { anchors.centerIn: parent; visible: RssModel.status==XmlListModel.Loading && state!='unauthed'}
+ Text {
+ width: 180
+ text: "Could not access twitter using this screen name and password pair.";
+ color: "white"; color: "#cccccc"; style: "Raised"; styleColor: "black"; wrap: true
+ visible: RssModel.status==XmlListModel.Error; anchors.centerIn: parent
+ }
Item {
id: Views