summaryrefslogtreecommitdiffstats
path: root/examples/declarative/searchbox
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/searchbox')
-rw-r--r--examples/declarative/searchbox/SearchBox.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/searchbox/SearchBox.qml b/examples/declarative/searchbox/SearchBox.qml
index 7077a11..524b652 100644
--- a/examples/declarative/searchbox/SearchBox.qml
+++ b/examples/declarative/searchbox/SearchBox.qml
@@ -23,7 +23,7 @@ FocusScope {
text: "Type something..."; color: "gray"; font.italic: true
}
- MouseRegion { anchors.fill: parent; onClicked: focusScope.focus = true }
+ MouseArea { anchors.fill: parent; onClicked: focusScope.focus = true }
TextInput {
id: textInput
@@ -38,7 +38,7 @@ FocusScope {
anchors.verticalCenter: parent.verticalCenter
source: "images/edit-clear-locationbar-rtl.png"; opacity: 0
- MouseRegion { anchors.fill: parent; onClicked: { textInput.text = ''; focusScope.focus = true } }
+ MouseArea { anchors.fill: parent; onClicked: { textInput.text = ''; focusScope.focus = true } }
}
states: State {