--- a/examples/declarative/ui-components/searchbox/SearchBox.qml Tue Jul 06 15:10:48 2010 +0300
+++ b/examples/declarative/ui-components/searchbox/SearchBox.qml Wed Aug 18 10:37:55 2010 +0300
@@ -66,23 +66,26 @@
font.italic: true
}
- MouseArea { anchors.fill: parent; onClicked: focusScope.focus = true }
+ MouseArea {
+ anchors.fill: parent
+ onClicked: { focusScope.focus = true; textInput.openSoftwareInputPanel(); }
+ }
TextInput {
id: textInput
- anchors { left: parent.left; leftMargin: 8; verticalCenter: parent.verticalCenter }
+ anchors { left: parent.left; leftMargin: 8; right: clear.left; rightMargin: 8; verticalCenter: parent.verticalCenter }
focus: true
}
Image {
id: clear
anchors { right: parent.right; rightMargin: 8; verticalCenter: parent.verticalCenter }
- source: "images/edit-clear-locationbar-rtl.png"
+ source: "images/clear.png"
opacity: 0
MouseArea {
anchors.fill: parent
- onClicked: { textInput.text = ''; focusScope.focus = true }
+ onClicked: { textInput.text = ''; focusScope.focus = true; textInput.openSoftwareInputPanel(); }
}
}