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