summaryrefslogtreecommitdiffstats
path: root/src/android/jar
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@digia.com>2014-03-26 16:45:24 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-28 18:04:22 +0100
commit3c6c14c0bff9ceb10a64aa04fb33cf2476800e20 (patch)
treedb9b25d34f8ee272db748a9ccf0c03d097e265b0 /src/android/jar
parent9b28ab3f38e21f2e1498dea5dd761d22d72fb1ac (diff)
Android: implement batch editing for input methods
Task-number: QTBUG-37584 Change-Id: I59f063b2e4b6427a66f7b561cfae7193ceafa43c Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/android/jar')
-rw-r--r--src/android/jar/src/org/qtproject/qt5/android/QtInputConnection.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/android/jar/src/org/qtproject/qt5/android/QtInputConnection.java b/src/android/jar/src/org/qtproject/qt5/android/QtInputConnection.java
index 655ab95dd8..6de66fe512 100644
--- a/src/android/jar/src/org/qtproject/qt5/android/QtInputConnection.java
+++ b/src/android/jar/src/org/qtproject/qt5/android/QtInputConnection.java
@@ -61,6 +61,8 @@ class QtExtractedText
class QtNativeInputConnection
{
+ static native boolean beginBatchEdit();
+ static native boolean endBatchEdit();
static native boolean commitText(String text, int newCursorPosition);
static native boolean commitCompletion(String text, int position);
static native boolean deleteSurroundingText(int leftLength, int rightLength);
@@ -121,14 +123,14 @@ public class QtInputConnection extends BaseInputConnection
public boolean beginBatchEdit()
{
setClosing(false);
- return true;
+ return QtNativeInputConnection.beginBatchEdit();
}
@Override
public boolean endBatchEdit()
{
setClosing(false);
- return true;
+ return QtNativeInputConnection.endBatchEdit();
}
@Override