summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/3/RemoveButton.qml
blob: 02b81459e989307d66d7b15822339faae6a1b002 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! [0]
Rect {
    id: removeButton
    width: 230
    height: 30
    color: "red"
    radius: 5
    Image {
        id: cancelIcon
        width: 22
        height: 22
        anchors.right: parent.right
        anchors.rightMargin: 4
        anchors.verticalCenter: parent.verticalCenter
        src: "../../shared/pics/cancel.png"
    }
    Image {
        id: confirmIcon
        width: 22
        height: 22
        anchors.left: parent.left
        anchors.leftMargin: 4
        anchors.verticalCenter: parent.verticalCenter
        src: "../../shared/pics/ok.png"
    }
    Text {
        id: text
        anchors.verticalCenter: parent.verticalCenter
        anchors.left: confirmIcon.right
        anchors.leftMargin: 4
        anchors.right: cancelIcon.left
        anchors.rightMargin: 4
        font.bold: true
        color: "white"
        hAlign: AlignHCenter
        text: "Remove"
    }
}
//! [0]