aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/hunspellinputmethod_p.h
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 /src/virtualkeyboard/hunspellinputmethod_p.h
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 'src/virtualkeyboard/hunspellinputmethod_p.h')
-rw-r--r--src/virtualkeyboard/hunspellinputmethod_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/virtualkeyboard/hunspellinputmethod_p.h b/src/virtualkeyboard/hunspellinputmethod_p.h
index 18ab2a0d..79fdcda0 100644
--- a/src/virtualkeyboard/hunspellinputmethod_p.h
+++ b/src/virtualkeyboard/hunspellinputmethod_p.h
@@ -36,6 +36,8 @@ public:
bool clearSuggestions();
bool hasSuggestions() const;
bool isAutoSpaceAllowed() const;
+ bool isValidInputChar(const QChar &c) const;
+ bool isJoiner(const QChar &c) const;
HunspellInputMethod *q_ptr;
QScopedPointer<HunspellWorker> hunspellWorker;