[PATCH] Modify the way we hide software input panel

14 views
Skip to first unread message

Rafael Brandao

unread,
Jul 17, 2012, 5:39:41 PM7/17/12
to snowsh...@googlegroups.com
In a recent change, the methods openSoftwareInputPanel and closeSoftwareInputPanel were removed.
It is recommended to use Qt.application.inputMethod.show() and hide() instead.

Reviewed-by: NOBODY
---
src/mobile/qml/UrlBar.qml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mobile/qml/UrlBar.qml b/src/mobile/qml/UrlBar.qml
index 6cbfdbf..1c935ce 100644
--- a/src/mobile/qml/UrlBar.qml
+++ b/src/mobile/qml/UrlBar.qml
@@ -49,7 +49,7 @@ Item {
text: ""
inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase

- onFocusChanged: if (!focus) closeSoftwareInputPanel()
+ onFocusChanged: if (!focus && Qt.application.inputMethod) Qt.application.inputMethod.hide()
onAccepted: root.accepted()

Text {
--
1.7.9.5

Rafael Brandao

unread,
Jul 17, 2012, 5:41:14 PM7/17/12
to snowsh...@googlegroups.com
I have not tested it on n9 yet, but will do very soon (and obviously only land after testing). This is documented on qtdeclarative/src/quick/doc/src/whatsnew.qdoc.
--
Rafael Brandao @ INdT

Alexis Menard

unread,
Jul 17, 2012, 5:46:03 PM7/17/12
to snowsh...@googlegroups.com
ok (provided it works on N9)

On Tue, Jul 17, 2012 at 6:39 PM, Rafael Brandao
<rafae...@openbossa.org> wrote:
--
Alexis Menard (darktears)
Software Engineer
openBossa @ INdT - Instituto Nokia de Tecnologia

Lauro Moura

unread,
Jul 17, 2012, 7:24:40 PM7/17/12
to snowsh...@googlegroups.com
On Tue, Jul 17, 2012 at 6:46 PM, Alexis Menard
<alexis...@openbossa.org> wrote:
> ok (provided it works on N9)
>

The actual object is Qt.inputMethod. Fixed in another patch.

--
Lauro Moura
Reply all
Reply to author
Forward
0 new messages