summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/contacts/2_Reuse/1a/ContactField.qml
blob: cf50fb08a7725d7e9e9724af97c58d7c459b77dd (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
import Qt 4.6

//! [load]
Item {
    id: contactField
    clip: true
    width: 230
    height: 30
    Loader {
        id: removeButton
        source: "RemoveButton.qml"
        width: item.width
        height: item.height
        anchors.right: parent.right
        anchors.top: parent.top
        anchors.bottom: parent.bottom
    }
//! [load]
    Text {
        id: fieldText
        width: contactField.width-80
        anchors.right: removeButton.left
        anchors.rightMargin: 10
        anchors.verticalCenter: parent.verticalCenter
        font.bold: true
        color: "black"
        text: 123123
    }
    Image {
        source: "../../shared/pics/phone.png"
        anchors.right: fieldText.left
        anchors.rightMargin: 10
        anchors.verticalCenter: parent.verticalCenter
    }
}