summaryrefslogtreecommitdiffstats
path: root/demos/declarative/twitter/TwitterCore/MultiTitleBar.qml
blob: e0205b8097575cabc445e6c04967d0162863078b (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
import Qt 4.6

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.type: "InOutQuad" } }
    ]
}