aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/inputpanel/data/inputpanel
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2015-10-05 14:57:43 +0300
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2015-10-15 15:01:38 +0000
commitc46ab8f76f6c32f0e415b01977bc51101da83a6d (patch)
treeac1c2e9c2736b4dfb2ec0f0a3f73aab9ce47f52c /tests/auto/inputpanel/data/inputpanel
parent4b033851e66086e66af93940c134e1456b40d273 (diff)
Add word reselection feature
This change adds support for word reselection. By definition, word reselection means the ability to reselect any of the existing words in the text by touching/clicking the word. This change implements previously unused functionality provided by QPlatformInputContext::invokeMethod(). This functionality is essential for handling touch events inside a pre-edit text. The virtual keyboard example app was previously blocking this function by overriding the default touch handling for TextInput and TextEdit components. Word reselection is currently implemented for the following input methods: - HunspellInputMethod - LipiInputMethod (by inheriting HunspellInputMethod) - T9WriteInputMethod. Change-Id: I66731e2d2831d4b3d43dac0503cd564ffb4d490f Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/inputpanel/data/inputpanel')
-rw-r--r--tests/auto/inputpanel/data/inputpanel/inputpanel.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
index 69b82590..07133051 100644
--- a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
+++ b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
@@ -33,6 +33,9 @@ InputPanel {
property var testcase
property var virtualKeyPressPoint: null
+ readonly property int cursorPosition: InputContext.cursorPosition
+ readonly property string preeditText: InputContext.preeditText
+ readonly property string surroundingText: InputContext.surroundingText
readonly property bool autoCapitalizationEnabled: InputContext.shiftHandler.autoCapitalizationEnabled
readonly property bool toggleShiftEnabled: InputContext.shiftHandler.toggleShiftEnabled
readonly property string locale: keyboard.locale