summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/contacts/3_Collections/Contact.qml
blob: f620c2586ce935db6f2a22b91c53450881f0d8c5 (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
<Item id="contactDetails"
    anchors.fill="{parent}">
    <properties>
        <Property name="contactid" value=""/>
        <Property name="label" onValueChanged="labelField.value = label"/>
        <Property name="phone" onValueChanged="phoneField.value = phone"/>
        <Property name="email" onValueChanged="emailField.value = email"/>
    </properties>
    <VerticalLayout id="layout"
        anchors.fill="{parent}"
        spacing="5"
        margin="5">
        <ContactField id="labelField"
            anchors.left="{layout.left}" anchors.leftMargin="5"
            anchors.right="{layout.right}" anchors.rightMargin="5"
            label="Name"/>
        <ContactField id="phoneField"
            anchors.left="{layout.left}" anchors.leftMargin="5"
            anchors.right="{layout.right}" anchors.rightMargin="5"
            icon="../shared/pics/phone.png"
            label="Phone"/>
        <ContactField id="emailField"
            anchors.left="{layout.left}" anchors.leftMargin="5"
            anchors.right="{layout.right}" anchors.rightMargin="5"
            icon="../shared/pics/email.png"
            label="Email"/>
    </VerticalLayout>
</Item>