summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/mobile/ToolBar.qml
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-08-25 07:25:43 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-08-25 07:27:02 (GMT)
commit912b9329a4d52e0260683b714976b166d1f56779 (patch)
tree47bb0252a0e4cdd5b1e40fc0d72ab962d33f0ec8 /demos/declarative/flickr/mobile/ToolBar.qml
parent7c1eaa4ec5d78ccf7770c09e12afb497daa4b90e (diff)
parentab4269502cda34abef9fb52161405bd1f6172791 (diff)
downloadQt-912b9329a4d52e0260683b714976b166d1f56779.zip
Qt-912b9329a4d52e0260683b714976b166d1f56779.tar.gz
Qt-912b9329a4d52e0260683b714976b166d1f56779.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts: src/declarative/qml/qmlcompiler.cpp src/declarative/qml/qmlengine_p.h
Diffstat (limited to 'demos/declarative/flickr/mobile/ToolBar.qml')
-rw-r--r--demos/declarative/flickr/mobile/ToolBar.qml23
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
+ }
+ }
+ }
+}