aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/hunspellworker.h
Commit message (Collapse)AuthorAgeFilesLines
* Compile fix for MSVC 2015 as it does not work with QAtomicInteger<bool>Andy Shaw2017-08-151-1/+1
| | | | | | | This fixes the original commit - 9db37be7210d4071c8b2c7bfa98d1822075ab452 Change-Id: I6679ce07a4890f7d8d332f0400a5bbd2cc6bb577 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Allow for separate threads accessing the abort variable at the same timeAndy Shaw2017-05-041-1/+1
| | | | | | | | | | | This fixes a problem reported by Intel Inspector 2016 which indicated that multiple threads could access the abort variable at the same time. So by making it atomic we avoid any problems in this regard. Task-number: QTBUG-60037 Change-Id: I79d293916f5105e8a36c41d3bc89cd1cb93e5109 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Automatically hide word candidate listJarkko Koivikko2017-01-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | This change adds support for automatically hiding word candidate list when inactive. This feature includes the following enhancements: - Added new settings: * VirtualKeyboardSettings.wordCandidateList.autoHideDelay * VirtualKeyboardSettings.wordCandidateList.alwaysVisible - Automatic hiding of word candidate list when inactive and when autoHideDelay elapsed. - alwaysVisible setting restores the old functionality. - Added new signal selectionListsChanged() to input method, allowing the input method to dynamically allocate or deallocate selection lists. - HunspellInputMethod does not allocate selection list when dictionary cannot be loaded, or Qt::ImhNoPredictiveText is enabled. Also, it will no longer use pre-edit text in this case. - OpenWnnInputMethod does not allocate selection list if not needed. [ChangeLog] Automatically hide word candidate list when inactive. Change-Id: Ifa95ae8a7c47a96719ffdc2929601ff2ef9c0d2e Reviewed-by: Gordan Markus <gordan.markus@pelagicore.com> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* License updateKalle Viironen2016-01-121-9/+17
| | | | | | Change-Id: I0dc6af72a3ae52a0b97b704df84fb1a8197aeeb8 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com> Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Wrap C++ API into namespaceJarkko Koivikko2015-10-271-2/+8
| | | | | | | | | | | | | | | This change wraps the entire C++ API into namespace. In practice, all the C++ interfaces inside the qtvirtualkeyboard plugin are private, except the QPlatformInputContext plugin API. Even the AbstractInputMethod and AbstractInputPanel are not really a public in the sense that they could be used outside the plugin. At least it does not make sense, since there is no way to extend the virtual keyboard functionality without recompiling the plugin. Task-number: QTRD-3628 Change-Id: I1037ee247abca3219efeaa4e4150baaff7c3d668 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* License Headers UpdateKalle Viironen2015-10-261-9/+12
| | | | | Change-Id: Iba2bd21b95dde1aac5750ac77856716e0c61e577 Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
* Correct license headers.Mitch Curtis2015-09-151-10/+10
| | | | | | | | | | Using the commercial template found here: https://wiki.it.local/display/QTCOM/Header+templates+to+be+used+in+Qt+Code Change-Id: If401d8fa3ff4dab6ea1e74477d5c02b5dcd09eea Task-number: QTRD-3693 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Move Hunspell dictionary loading to worker threadJarkko Koivikko2015-06-171-1/+30
| | | | | | | | | | | | | | | | | | | | | | | This change moves the Hunspell dictionary loading to worker thread. The dictionary loading is relatively heavy task for large dictionary files, such as Arabic, which can take more than 2 seconds to load on the Nexus 7 hardware. The Hunspell worker thread is no longer destroyed and created every time the dictionary changes, instead the worker thread is re-used. The dictionary loading happens by adding a new kind of task for the worker thread. Also, added a special function for clearing all but dictionary loading tasks from the worker task queue. This is needed for a special case where the dictionary is still loading while the user starts typing. Updated the test cases to take into account changes in delays in loading the dictionary. Change-Id: If9be14c7703b39af79f6e3b6708e297a28c49f2f Reviewed-by: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
* Change copyright noticeRainer Keller2014-10-061-3/+3
| | | | | | | | | - URL points to qt.io - Update year to 2014 Change-Id: I6a77715faf32c88fe2832a6d21a912a20e5dae50 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Kalle Viironen <kalle.viironen@digia.com>
* Add option to disable auto correction in HunspellInputMethodv1.1.0Jarkko Koivikko2014-07-011-0/+1
| | | | | | | The auto correction is disabled by default. Change-Id: Iff8a7b619c3aed4eaa75de0791e601cbe9636125 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Update license headers.Mitch Curtis2014-06-231-1/+1
| | | | | | | | | | | "This file is part of the Qt Quick Enterprise Controls add-on." becomes: "This file is part of the Qt Virtual Keyboard add-on for Qt Enterprise." Change-Id: Ief6e840a658fdf769d653844fe92752aa44c3bec Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Prioritize missing accent characters in HunspellJarkko Koivikko2014-05-061-0/+1
| | | | | Change-Id: I3b84ad9213ce2886591b7970d74235a0c78686ce Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Fix character encoding issue with HunspellJarkko Koivikko2014-05-061-0/+3
| | | | | | | Select text codec based on the dictionary encoding. Change-Id: Ia79d39f337afce9373c53899dfc1fb5ca660f852 Reviewed-by: Rainer Keller <rainer.keller@digia.com>
* Restructure and rename.Mitch Curtis2014-01-281-0/+100
This restructures the repo to match other Qt modules, like the Enterprise Controls. It also renames the plugin and usages of its name in the documentation so that the abbreviated "VKB" is not used anywhere. Change-Id: I5de3fc67846a50438e52f4be057abfa0d9be0d91 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>