diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-08-25 01:20:08 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-08-25 01:20:08 (GMT) |
commit | 7f41d39c293e1bd013acc0e79af2aa66e1f9e4d0 (patch) | |
tree | 01569d474f4eee0a097fdb4a5be8b39a09399f52 /demos/declarative/flickr/mobile/ToolBar.qml | |
parent | e1081c88616fea20fed343e258c98da2a669d9f1 (diff) | |
download | Qt-7f41d39c293e1bd013acc0e79af2aa66e1f9e4d0.zip Qt-7f41d39c293e1bd013acc0e79af2aa66e1f9e4d0.tar.gz Qt-7f41d39c293e1bd013acc0e79af2aa66e1f9e4d0.tar.bz2 |
Mobile version of Flickr demo in flickr-mobile.qml.
Diffstat (limited to 'demos/declarative/flickr/mobile/ToolBar.qml')
-rw-r--r-- | demos/declarative/flickr/mobile/ToolBar.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/demos/declarative/flickr/mobile/ToolBar.qml b/demos/declarative/flickr/mobile/ToolBar.qml new file mode 100644 index 0000000..aa78c52 --- /dev/null +++ b/demos/declarative/flickr/mobile/ToolBar.qml @@ -0,0 +1,23 @@ +import Qt 4.6 + +Item { + id: Toolbar + property var button2: Button2 + + BorderImage { source: "images/titlebar2.sci"; width: parent.width; height: parent.height + 14; y: -7 } + + Button { anchors.left: parent.left; anchors.leftMargin: 5; y: 3; width: 140; height: 32; text: "Update"; onClicked: RssModel.reload() } + + Button { + id: Button2 + anchors.right: parent.right; anchors.rightMargin: 5; y: 3; width: 140; height: 32; text: "View mode" + onClicked: { + if (Button2.text == "View mode") { + if (Screen.inListView == true) + Screen.inListView = false; + else + Screen.inListView = true + } + } + } +} |