summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/mobile/ToolBar.qml
blob: f96c767d74f574711262018be7e21ff3049e25db (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 {
    id: toolbar

    property alias button1Label: button1.text
    property alias button2Label: button2.text
    signal button1Clicked
    signal button2Clicked

    BorderImage { source: "images/titlebar.sci"; width: parent.width; height: parent.height + 14; y: -7 }

    Button {
        id: button1
        anchors.left: parent.left; anchors.leftMargin: 5; y: 3; width: 140; height: 32
        onClicked: toolbar.button1Clicked()
    }

    Button {
        id: button2
        anchors.right: parent.right; anchors.rightMargin: 5; y: 3; width: 140; height: 32
        onClicked: toolbar.button2Clicked()
    }
}