diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-01-15 17:34:04 +0200 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-01-16 09:11:37 +0200 |
commit | 456e3c65525d1f04b18d496d1a849fbb9d6367a7 (patch) | |
tree | 94d15739e136b482bb17d6842da8f6577c07fad4 /src/virtualkeyboard/hunspellinputmethod.cpp | |
parent | e7e2c8006260c4a82ea11446576fda2fcd42e528 (diff) |
Do not load Hunspell dictionary when Qt::ImhNoPredictiveText is set
Change-Id: I5a17e20fd516a51881615f2900fa0fdee377b680
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/virtualkeyboard/hunspellinputmethod.cpp')
-rw-r--r-- | src/virtualkeyboard/hunspellinputmethod.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/virtualkeyboard/hunspellinputmethod.cpp b/src/virtualkeyboard/hunspellinputmethod.cpp index 79806972..27afcb93 100644 --- a/src/virtualkeyboard/hunspellinputmethod.cpp +++ b/src/virtualkeyboard/hunspellinputmethod.cpp @@ -201,6 +201,8 @@ bool HunspellInputMethod::setInputMode(const QString &locale, DeclarativeInputEn { Q_UNUSED(inputMode) Q_D(HunspellInputMethod); + if (inputContext()->inputMethodHints().testFlag(Qt::ImhNoPredictiveText)) + return true; return d->createHunspell(locale); } |