summaryrefslogtreecommitdiffstats
path: root/demos/declarative/twitter/content/MultiTitleBar.qml
blob: 6a6a28f918de64575b174eb970f73c8a8da1fe7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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" } }
    ]
}