From d0138bbd479019e0ac402c87144995554950970c Mon Sep 17 00:00:00 2001 From: Venu Date: Mon, 15 Sep 2014 17:02:43 +0200 Subject: Updated the example to accept input on Android MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Android inputMethod doesn't commit the text until a word is chosen from the suggestions list. This makes the URL for XMLHTTPRequest invalid. To avoid the invalid URL, we should either not use predictive text or explicitly commit the text. I choose to go with the earlier option. Task-number: QTBUT-41335 Change-Id: Id03c4dc8cfbd1b32cc2868fe8b78cd039994ff71 Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Topi Reiniƶ --- examples/quick/demos/tweetsearch/content/SearchDelegate.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples/quick') diff --git a/examples/quick/demos/tweetsearch/content/SearchDelegate.qml b/examples/quick/demos/tweetsearch/content/SearchDelegate.qml index cb0e190fe8..669021a582 100644 --- a/examples/quick/demos/tweetsearch/content/SearchDelegate.qml +++ b/examples/quick/demos/tweetsearch/content/SearchDelegate.qml @@ -113,7 +113,11 @@ FlipBar { hint: flipBar.placeHolder focus: flipBar.opened anchors { fill: parent; margins: 6 } - onAccepted: flipBar.ok() + onAccepted: { + if (Qt.inputMethod.visible) + Qt.inputMethod.hide() + flipBar.ok() + } } } } -- cgit v1.2.3