aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/qvirtualkeyboardinputengine.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix high CPU utilization caused by key repeat timerJarkko Koivikko2021-06-091-2/+4
| | | | | | | | | | | | | | | | | | | Key repeat timer has been broken since the beginning. The key repeat timer leaked timer instances while processing the event, causing the accumulation of unprocessed timer events and high CPU utilization. Fix the issue by killing the original timer (long press delay 600 ms) and starting the key repeat timer (repeat delay 50 ms) once. [ChangeLog] Fixed high CPU utilization caused by key repeat timer. Fixes: QTBUG-94259 Change-Id: Iff47249db27cda3750f497cb02c1cb642261e032 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> (cherry picked from commit 63a944ff12580f2c333a162ecaecd12419a39c10) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix documentation issuesTopi Reinio2019-01-041-23/+43
| | | | | | | | | | | This commit fixes multiple documentation warnings - typos, missing documentation, missing \internal specifiers, linking problems and incorrect documentation configuration which caused Clang to fail to build a precompiled header for QtVirtualKeyboard. Change-Id: I33baf730a98747842a7813bb6ea3a3545927410b Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Martin Smith <martin.smith@qt.io>
* Restrict more sensitive logging outputMitch Curtis2018-11-071-3/+17
| | | | | | | c7a94110 missed some output. Change-Id: If2f1487dad2581f283800a13b8f791ccc7af1a59 Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
* t9write: Add Thai handwriting recognitionJarkko Koivikko2018-10-111-0/+1
| | | | | | | [ChangeLog] Added Thai handwriting recognition (T9 Write). Change-Id: Idb34fcf07d0318bbca6e6573e5859edb375f205f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Qtify new APIMitch Curtis2018-09-271-2/+2
| | | | | | | | | | | | | | | Add "is" to C++ getter functions returning bool (where applicable). Add "Active" to "shift" and "capsLock" QML properties, etc. By making these names more explicit, it's clearer what they do and also future-proofs the API by allowing us to add related properties in the future if necessary. [ChangeLog][InputContext] Deprecated shift and capsLock properties in favor of shiftActive and capsLockActive. Change-Id: I66f2c85b50622a6e5fe6b25fb24f13be27acaf9d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Use enum class in the public APIJarkko Koivikko2018-08-281-52/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was suggested in the API review. All the "old" enums are backwards compatible in QML, since unscoped values are enabled by default. Added the following new enum values maintaining compatibility (in QML): - QVirtualKeyboardInputEngine::PatternRecognitionMode::None (same as PatternRecognitionDisabled) - QVirtualKeyboardInputEngine::PatternRecognitionMode::Handwriting (same as HandwritingRecoginition) - QVirtualKeyboardSelectionListModel::Role::Display (same as DisplayRole) - QVirtualKeyboardSelectionListModel::Role::WordCompletionLength (same as WordCompletionLengthRole) Renamed the following enum values (new in 5.12): - QVirtualKeyboardSelectionListModel::Role::Dictionary (was DictionaryTypeRole) - QVirtualKeyboardSelectionListModel::Role::CanRemoveSuggestion (was CanRemoveSuggestionRole) - QVirtualKeyboardSelectionListModel::DictionaryType::Default (was DefaultDictionary) - QVirtualKeyboardSelectionListModel::DictionaryType::User (was UserDictionary) Added missing Q_DECLARE_METATYPE for: - QVirtualKeyboardInputEngine::PatternRecognitionMode - QVirtualKeyboardInputEngine::ReselectFlag - QVirtualKeyboardSelectionListModel::DictionaryType The enums can be found in: - src/virtualkeyboard/qvirtualkeyboardinputengine.h - src/virtualkeyboard/qvirtualkeyboardselectionlistmodel.h Added a test case for verifying QML enum values. Change-Id: I16749af71aadd762e9c303b5c682b2888afaa672 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* Prefix non-namespaced header file names with qvirtualkeyboardJarkko Koivikko2018-08-271-0/+1048
Change-Id: Idf2447736ef72fa0fb4dfeacc3386ed7b4fe41c9 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>