summaryrefslogtreecommitdiffstats
path: root/demos/declarative/contacts/SearchBar.qml
blob: 3ee2665b81231411c2adddfe084566f8ff61faf4 (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
Rect {
    id: searchBar
    color: "white"
    property var text: searchEdit.text
    Image {
        id: searchIcon
        anchors.left: parent.left
        anchors.leftMargin: 5
        anchors.verticalCenter: parent.verticalCenter
        source: "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
        text: ""
    }
}