summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/flickr-mobile.qml
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-08-31 05:34:49 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-08-31 05:34:49 (GMT)
commitf13fbc5d61a4cd7e00220926ed0b382f8a86ba75 (patch)
tree4e4dd5043ce93621ad1939b8a2db6db08c2d829a /demos/declarative/flickr/flickr-mobile.qml
parentbffc072ae6177dcebc3bfa24c747a88b4eb09d74 (diff)
downloadQt-f13fbc5d61a4cd7e00220926ed0b382f8a86ba75.zip
Qt-f13fbc5d61a4cd7e00220926ed0b382f8a86ba75.tar.gz
Qt-f13fbc5d61a4cd7e00220926ed0b382f8a86ba75.tar.bz2
Fix flickr-mobile toolbar
Diffstat (limited to 'demos/declarative/flickr/flickr-mobile.qml')
-rw-r--r--demos/declarative/flickr/flickr-mobile.qml28
1 files changed, 17 insertions, 11 deletions
diff --git a/demos/declarative/flickr/flickr-mobile.qml b/demos/declarative/flickr/flickr-mobile.qml
index a4692a3..a6265c9 100644
--- a/demos/declarative/flickr/flickr-mobile.qml
+++ b/demos/declarative/flickr/flickr-mobile.qml
@@ -35,17 +35,23 @@ Item {
Common.ImageDetails { id: ImageDetails; width: parent.width; x: parent.width; height: parent.height }
Mobile.TitleBar { id: TitleBar; width: parent.width; height: 40; opacity: 0.9 }
- Mobile.ToolBar { id: ToolBar; height: 40; anchors.bottom: parent.bottom; width: parent.width; opacity: 0.9 }
- states: [
- State {
- name: "ListView"; when: Screen.inListView == true
- PropertyChanges { target: PhotoListView; x: 0 }
- PropertyChanges { target: PhotoGridView; x: -(parent.width * 1.5) }
- }
- ]
- transitions: [
- Transition { NumberAnimation { properties: "x"; duration: 500; easing: "easeInOutQuad" } }
- ]
+ Mobile.ToolBar {
+ id: ToolBar
+ height: 40; anchors.bottom: parent.bottom; width: parent.width; opacity: 0.9
+ button1Label: "Update"; button2Label: "View mode"
+ onButton1Clicked: RssModel.reload()
+ onButton2Clicked: if (Screen.inListView == true) Screen.inListView = false; else Screen.inListView = true
+ }
+
+ states: State {
+ name: "ListView"; when: Screen.inListView == true
+ PropertyChanges { target: PhotoListView; x: 0 }
+ PropertyChanges { target: PhotoGridView; x: -(parent.width * 1.5) }
+ }
+
+ transitions: Transition {
+ NumberAnimation { properties: "x"; duration: 500; easing: "easeInOutQuad" }
+ }
}
}