summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/contacts/Final/SearchBar.qml
blob: aea5a5d0bf24ee64a72d7b7f435be78ad401dd26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<Rect id="searchBar"
    color="white">
    <properties>
        <Property name="text" value="{searchEdit.text}"/>
    </properties>
    <Image id="searchIcon"
        anchors.left="{parent.left}" anchors.leftMargin="5"
        anchors.verticalCenter="{parent.verticalCenter}"
        src="../shared/pics/search.png"/>
    <TextEdit id="searchEdit"
        anchors.left="{searchIcon.right}" anchors.right="{parent.right}"
        anchors.leftMargin="5" anchors.rightMargin="5"
        anchors.verticalCenter="{parent.verticalCenter}"
        readOnly="false"
        wrap="false"
        focus="true"/>
</Rect>