2 import com.nokia.meego 1.0
3 import "uiconstants.js" as UiConstants
7 property alias text: searchField.text
13 height: UiConstants.SearchBarDefaultHeight
14 source: style.background
22 height: UiConstants.DefaultMargin
26 anchors.left: parent.left
27 width: UiConstants.DefaultMargin
28 height: searchField.height
32 anchors.right: parent.right
33 width: UiConstants.DefaultMargin
34 height: searchField.height
39 anchors.top: spacerTop.bottom
40 anchors.left: spacerLeft.right
41 anchors.right: spacerRight.left
42 placeholderText: qsTr("Search")
43 inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase
44 platformStyle: TextFieldStyle { paddingRight: clearButton.width }
46 if (searchField.text.length === 0) {
47 searchButton.visible = true
48 clearButton.visible = false
50 searchButton.visible = false
51 clearButton.visible = true
58 anchors.right: parent.right
59 anchors.verticalCenter: parent.verticalCenter
60 source: "image://theme/icon-m-common-search"
65 anchors.right: parent.right
66 anchors.verticalCenter: parent.verticalCenter
67 source: "image://theme/icon-m-input-clear"
80 anchors.top: searchField.bottom
81 height: UiConstants.DefaultMargins