From 00857aeee742c3c05d5286854de98820d2f5042e Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 3 Sep 2009 16:49:50 +1000 Subject: Differentiate between loading and error states. --- demos/declarative/twitter/twitter.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v0.12