--- /dev/null
+import QtQuick 1.1
+import com.nokia.meego 1.0
+
+Item {
+ id: searchBox
+
+ property alias text: custom.text
+ signal selected (string search_text)
+
+
+ anchors { left: parent.left; right: parent.right;
+ bottomMargin: 10; leftMargin: 10; rightMargin: 10}
+ height: custom.height
+
+ TextField {
+ id: custom
+ anchors { left: parent.left; right: activateButton.left; rightMargin: 10}
+
+ platformSipAttributes: SipAttributes { actionKeyLabel: "Search"
+ actionKeyHighlighted: true}
+
+ placeholderText: "free search"
+ platformStyle: TextFieldStyle { paddingRight: clearButton.width }
+ Image {
+ id: clearButton
+ anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
+ source: "image://theme/icon-m-input-clear"
+ MouseArea {
+ anchors.fill: parent
+ onClicked: {
+ inputContext.reset();
+ custom.text = "";
+ }
+ }
+ }
+ }
+
+ Button {
+ id: activateButton
+ anchors.right: parent.right
+ width: 100
+ text: "Search"
+ onClicked: { console.log (custom.text);
+ searchBox.selected (custom.text) }
+ }
+}