summaryrefslogtreecommitdiffstats
path: root/demos/declarative/twitter/content/MultiTitleBar.qml
blob: ef7de65a3e2a909b54d1c9c86c592e0a2b933602 (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: "easeInOutQuad" } }
    ]
}