From 38276a3d5348423a222c0fc794a28ab361d97e78 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Tue, 15 Nov 2011 18:17:29 +0200 Subject: TextInput elements not to have tentative commit in inputMethodQuery Tentative commit should not be part of surrounding text, it's already a property of the input method. Change-Id: I64aec9763fb20770b6729f7f59dcbe23cf5a6718 Reviewed-by: Joona Petrell Reviewed-by: Lars Knoll --- src/declarative/items/qquicktextinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/declarative') diff --git a/src/declarative/items/qquicktextinput.cpp b/src/declarative/items/qquicktextinput.cpp index 218a313a17..c9469babdb 100644 --- a/src/declarative/items/qquicktextinput.cpp +++ b/src/declarative/items/qquicktextinput.cpp @@ -1355,7 +1355,7 @@ QVariant QQuickTextInput::inputMethodQuery(Qt::InputMethodQuery property) const && !d->control->passwordEchoEditing()) { return QVariant(displayText()); } else { - return QVariant(text()); + return QVariant(d->control->realText()); } case Qt::ImCurrentSelection: return QVariant(selectedText()); -- cgit v1.2.3