summaryrefslogtreecommitdiffstats
path: root/demos/declarative/twitter/content/MultiTitleBar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/twitter/content/MultiTitleBar.qml')
-rw-r--r--demos/declarative/twitter/content/MultiTitleBar.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/demos/declarative/twitter/content/MultiTitleBar.qml b/demos/declarative/twitter/content/MultiTitleBar.qml
new file mode 100644
index 0000000..6a6a28f
--- /dev/null
+++ b/demos/declarative/twitter/content/MultiTitleBar.qml
@@ -0,0 +1,25 @@
+import Qt 4.6
+import "../../flickr/mobile"
+
+Item {
+ height: HomeBar.height
+ HomeTitleBar { id: HomeBar; width: parent.width; height: 60;
+ onUpdate: RssModel.reload()
+ }
+ TitleBar { id: TitleBar; width: parent.width; height: 60;
+ y: -80
+ untaggedString: "Latest tweets from everyone"
+ taggedString: "Latest tweets from "
+ }
+ states: [
+ State {
+ name: "search"; when: Screen.userView
+ PropertyChanges { target: TitleBar; y: 0 }
+ PropertyChanges { target: HomeBar; y: -80 }
+ }
+ ]
+ transitions: [
+ Transition { NumberAnimation { properties: "x,y"; duration: 500; easing: "easeInOutQuad" } }
+ ]
+}
+