aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Be more restrictive about which information is included in loggingMitch Curtis2018-10-262-3/+15
| | | | | | | | | | - Introduce SENSITIVE_DEBUG flag that should be explicitly enabled in order to have certain information included in logging output. - Replace qWarning() with qCWarning() where appropriate. Change-Id: I6386f9cb3ce375101f3c42f407d4af380f1ff75e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Do show module license on all help pagesKai Koehne2018-09-271-0/+1
| | | | | | | | | | | | | | | | | | | | Qt Virtual Keyboard has a different main license than most other Qt modules, which is easy to miss. We do show the license on the module landing page and in the 'All modules' overview page, but if you directly open an example or a class page you can still miss this. This change adds the main license description to the header shared by all pages of the module; we (mis)use the buildversion variable for that, which was so far unused. Right now qdoc does not 'linkify' the entry. It could add a generic link to the landing page though, where the license is also described. Task-number: QTBUG-70354 Change-Id: I5f271b1bcba6992abfd1ad7e213fc5f2a93a0d25 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Doc: Use correct image in virtual keyboard layout docsPaul Wicking2018-09-241-1/+1
| | | | | | Task-number: QTBUG-70602 Change-Id: I04a7015b6ee41dd9676f8b5859399e9758e7de1f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix word candidate list auto hidingJarkko Koivikko2018-09-241-0/+2
| | | | | | | | | | | | | | Stop auto hide timer when the word candidate list is not empty. Constantly failing CI bot revealed this error: agent:2018/09/24 07:50:50 build.go:193: FAIL! : inputpanel::tst_plugin::test_zhuyinInputMethod(row 17) 'Expected wordCandidateView to have a currentItem, but it's null. Its property values at the time of failure are: x=0 y=-9.478976 width=400 height=13 count=0 flicking=false moving=false visible=false' returned FALSE. () Task-number: QTBUG-62518 Task-number: QTBUG-61279 Task-number: QTQAINFRA-2226 Change-Id: I775aa834da9809008a34fc760e994610ad6e95a8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Partially revert 30479f9771e60938dc0f6e325e3b16fb52663796Andy Shaw2018-09-051-9/+11
| | | | | | | | | | With the 30479f9771e60938dc0f6e325e3b16fb52663796 patch applied it would mean that the keyboard would not show up in desktop mode. Therefore the patch is partially reverted to still have the original crash fix without introducing a new bug. Change-Id: I1a0c84eef0a592990ccd7ff754069ad150dc7a69 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix possible crash in PlatformInputContext::updateJarkko Koivikko2018-08-291-10/+9
| | | | | | | | | | | | | Under some condition, QPlatformInputContext::update is called before our (QML) input context is created. This will result in crash if desktop integration is also enabled, since null pointer check is missing. [ChangeLog] Fixed possible crash in PlatformInputContext::update. Task-number: QTBUG-67595 Change-Id: I19c78dbf19cf3c2a72193c2e2a60f46995c1f6ad Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Disable layout mirroring for virtual keyboardJarkko Koivikko2018-08-282-0/+6
| | | | | | | | | | | When layout mirroring is enabled for an application using virtual keyboard, the keyboard layout is also mirrored. This change disables layout mirroring for virtual keyboard. Task-number: QTBUG-70041 Change-Id: I097ae7fe907a463ef53e5f39f357c61d57bbb9c0 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* Fix duplicated selection handle on desktop integrationJarkko Koivikko2018-08-271-1/+1
| | | | | | | | | | | | | SelectionControl on the InputPanel was not disabled when using desktop integration. This caused duplicated handles to appear on screen. This change disables the SelectionControl when desktop integration is used. Task-number: QTBUG-60321 Change-Id: Icf7cab4bdeacade16bbe2b1eb2078baceb955d5e Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* Doc: improve integration documentation, especially regarding WaylandMitch Curtis2018-08-233-12/+47
| | | | | | Change-Id: Id27ebb78001ff060d67917e9ac69f75682a885ac Reviewed-by: Johan Helsing <johan.helsing@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Print the focus window when InputContext::sendKeyClick() failsMitch Curtis2018-08-171-2/+3
| | | | | | | | | | So far I've been unable to reproduce the flakiness with a Windows CI VM, so let's add some extra context to the warning message that is printed before the test (sometimes) fails. Task-number: QTBUG-62518 Change-Id: Idebaadb93fe2f38a94a9f096bc044b28171afafd Reviewed-by: Liang Qi <liang.qi@qt.io>
* Migrate VirtualKeyboardSettings to QRegularExpressionSamuel Gaist2018-07-161-3/+4
| | | | | | | | | This patch updates the VirtualKeyboardSettings class to use QRegularExpression in place of QRegExp which is to be considered deprecated. Change-Id: Ib7cecc0070f86b63793e3f3876a44710a0ecc394 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Migrate HunspellBuildSuggestionsTask to QRegularExpressionSamuel Gaist2018-07-161-2/+2
| | | | | | | | | This patch updates the HunspellBuildSuggestionsTask class to use QRegularExpression in place of QRegExp which is to be considered deprecated. Change-Id: I6db18a46b380a27fff0970baec2809192555a984 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Improve Handwriting Recognition documentationMitch Curtis2018-07-024-1/+96
| | | | | | | | | | - Provide an overview of handwriting recognition support - Add a GIF - List languages supported by each engine Task-number: QTBUG-68624 Change-Id: I26af8b8984fabd74855d067bd9818f6db0136cec Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Use FDL license for all .qdoc filesKai Koehne2018-05-237-77/+63
| | | | | Change-Id: Ie2e07a5ec8f7ef4a7728db7c458319e75cda41ee Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix encoding of path environment variablesJarkko Koivikko2018-05-235-8/+8
| | | | | | | | | | | | | | | | | | | | | | This change modifies encoding of the following environment variables: - QT_VIRTUALKEYBOARD_HUNSPELL_DATA_PATH - QT_VIRTUALKEYBOARD_PINYIN_DICTIONARY - QT_VIRTUALKEYBOARD_CANGJIE_DICTIONARY - QT_VIRTUALKEYBOARD_ZHUYIN_DICTIONARY - QT_VIRTUALKEYBOARD_PHRASE_DICTIONARY - QT_VIRTUALKEYBOARD_LAYOUT_PATH - LIPI_ROOT - LIPI_LIB Previously they were read using qgetenv and latin1 encoding. Now they are read using qEnvironmentVariable, which handles the encoding properly. [ChangeLog] Fixed encoding of path environment variables. Task-number: QTBUG-62328 Change-Id: I8e32c111a498d3b57259fe6dd96290545f10030a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix anchor warning in default stylesJarkko Koivikko2018-05-232-32/+53
| | | | | | | | | | | | | | Fixes warnings like: qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:136:9: QML Rectangle: Cannot anchor to an item that isn't a parent or sibling. [ChangeLog] Fixed qml anchor warnings from default styles Task-number: QTBUG-67677 Change-Id: I9d079dc02e9530431020c19ac3a5db9cee6f76a1 (cherry picked from commit 7e8a17f8af88b3434f9d5763dd528a29ec40bf8c) Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Doc: add screenshots of all layoutsMitch Curtis2018-04-2240-36/+238
| | | | | | | | | | Add a new "Qt Virtual Keyboard Layouts" page that lists all languages along with screenshots of each one. Task-number: QTBUG-67645 Change-Id: Ibb15924cec841f43c7205951fb80c9d7e13362c1 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: fix a couple of issues with the build documentationMitch Curtis2018-04-181-4/+2
| | | | | | Change-Id: Ic81beeb940e5595f9f54695a28eb3cb25e19a052 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* OpenWnnInputMethodPrivate::displayCandidates(): Add parentheses to ↵Friedemann Kleint2018-04-171-2/+1
| | | | | | | | | | | | | | assignment in condition Fix clang-cl warning: openwnninputmethod.cpp:312: using the result of an assignment as a condition without parentheses [-Wparentheses] Drop unneeded braces on that occasion. Task-number: QTBUG-63512 Change-Id: Ie9137bedf07d6728282be554fb21893246ae1e96 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Build all languages (layouts) by defaultMitch Curtis2018-04-163-9/+25
| | | | | | | | | | | | | | | | Previously we were only building all languages when the module was built with a developer build of Qt and for auto tests. However, since users have to build the example themselves (since we don't provide example binaries), they will only see en_GB by default. This change makes it so that the user will have access to all available languages by default. Users that don't want or need all languages for their application can specify individual languages with e.g. CONFIG+=lang-es_ES. Change-Id: I643ab6c7a1f01426a3ef86a886a4a4dd10ad00f6 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* pinyin: move time include to userdict.hMitch Curtis2018-04-162-4/+2
| | | | | | | | | | | | | There was a build error on QNX: share/../include/userdict.h:130:20: error: field 'load_time' has incomplete type 'ime_pinyin::timeval' share/../include/userdict.h:130:12: note: forward declaration of 'struct ime_pinyin::timeval' Change-Id: Id7fc041d7f935fcca72b87b0bfcfd34afa4d8070 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix full screen edit mode with word candidate list always visiblev5.11.0-beta4Jarkko Koivikko2018-04-051-1/+1
| | | | | | | | | | | | | | Full screen mode covers the entire screen when enabled. However, if also VirtualKeyboardSettings.wordCandidateList.alwaysVisible is true, the word candidate area was subtracted from the full screen mode area. This change fixes the issue, and does not subtract the area in this case. [ChangeLog] Fix full screen edit mode with word candidate list always visible. Task-number: QTBUG-67510 Change-Id: I816ccdb22be01e2f86fccacc6ba946ea202815ae Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix emitting keyboardRectangleJarkko Koivikko2018-04-042-9/+16
| | | | | | | | | | | keyboardRectangle was not correct because the binding was in the wrong place. This change moves the binding to InputPanel, which then can map the keyboard location to itself, or to root item. Change-Id: I471df13d5381ec9b0e1b80369590bc608d17ae91 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Revert "Revert "Compile QML files ahead of time in resources""v5.11.0-beta3Simon Hausmann2018-04-011-0/+1
| | | | | | | | | QTBUG-66675 is fixed now. This reverts commit 7db26902b36e3417a96586f98278b63afc0b0ad4. Change-Id: Ifc02a9ba4ce4fcb0dd7ecf9e48fab42e332648a5 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* FullScreenMode: Send return key without modifiersv5.11.0-beta2Andy Shaw2018-03-091-1/+2
| | | | | | | | | | | When the return key is sent to a multiple line text field it can be interpreted differently if the Shift modifier is included. This makes sense for a hard keyboard as you can use it to enter in a new line versus a new paragraph. For the virtual keyboard however, it is best to just send it as a plain return so it handles it correctly. Change-Id: I995504d7ab6961fd8baf016d2d68be4b659d1e19 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Resolve all documentation warningsTopi Reinio2018-03-075-18/+62
| | | | | | | | | | | QDoc in Qt 5.11 uses Clang to parse the C++ source for documentation. for this, Clang needs a module header which is not available for Qt Virtual Keyboard - construct a custom one for documentation builds and fix all remaining documentation warnings; \fn command syntax and one linking issue. Change-Id: I1e9b2170aca98782e9d6a758e84c9d17449cb25c Reviewed-by: Martin Smith <martin.smith@qt.io>
* Use Qt Quick Controls 2 in the basic exampleMitch Curtis2018-03-062-6/+6
| | | | | | | | | | | | | - Replace custom text input types with corresponding Qt Quick Controls 2 types. - Replace custom scrollbar with ScrollBar from Qt Quick Controls 2. - Only build the basic example if Qt Quick Controls 2 is available. - Update the documentation and its screenshot. Change-Id: Ib2559595d4a589bb228450bc08be5ab6fbc69b91 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Revert "Compile QML files ahead of time in resources"Simon Hausmann2018-03-061-1/+0
| | | | | | | | | This reverts commit 5f80f66d3b5878bba021d4ac67e35388bfe84fdb, as it caused QTBUG-66675 and blocks the module. Let's re-apply this when the bug in declarative is fixed. Change-Id: Ice2dc9b9e7c8fd85d59fc0dfc324e4574c9140fd Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Compile QML files ahead of time in resourcesSimon Hausmann2018-02-151-0/+1
| | | | | | | | | | | With the QtQuickCompiler compatibility in place in qtdeclarative, we can by default compile all qml files ahead of time, embed the cache files into resources and avoid shipping the original sources. This simplifies distribution and reduces the size of the overall package, ~1.6 MB for libqtvirtualkeyboardplugin.so on Linux x86-64. Change-Id: Ic3c20f43dfac6e601389b581033dcaf6f7015443 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix typosJarek Kobus2018-02-142-2/+2
| | | | | Change-Id: I44f54d94e52626755a480f6ded8b740039dc49ac Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Merge remote-tracking branch 'origin/5.10' into 5.11Liang Qi2018-02-124-0/+1352
|\ | | | | | | Change-Id: Id2c6a6993190c1860645bf3fc9952010f9f7bdc7
| * Merge remote-tracking branch 'origin/5.9' into 5.105.10Liang Qi2018-02-024-0/+1352
| |\ | | | | | | | | | Change-Id: I5b4a9d3a92bb165c12cb74e6435387c06495b090
| | * Add qmldir and plugin.qmltypes for QtQuick.VirtualKeyboard.Settings importMitch Curtis2018-01-234-0/+1352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As was done for QtQuick.VirtualKeyboard in 945afc07. This ensures that Creator doesn't treat the import as unknown. Task-number: QTBUG-63213 Change-Id: I155dc2beb60f83942521699bd9960924d51aa02a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io>
* | | Respect Qt::ImhNoTextHandlesJ-P Nurmi2018-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | Change-Id: I0f2481b2650a0a43623e8ece21d89e668c348a86 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* | | Remove QtQuickCompiler workaroundsSamuli Piippo2018-02-053-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | QtQuickCompiler workarounds are no longer required with Qt 5.11 and need to be removed to fix build failure where private/qqmlmetatype_p.h was not found, since QT+=qml-private is no longer done by qtquickcompiler.prf. Change-Id: I48f640a5b7196b295de89589d14061011ed920fc Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | Merge remote-tracking branch 'origin/5.10' into devLiang Qi2018-01-207-91/+4
|\| | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I84cccac7024c1c48b6419838bb424e45cb2557d4
| * | Merge remote-tracking branch 'origin/5.9' into 5.10Liang Qi2018-01-185-90/+0
| |\| | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I817d5980ab3132256894b04ddc8daf79d8fc0495
| | * Delete unnecessary .qrc filesAlexander Volkov2017-12-225-90/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | They are unused since 97d9648f5d950ea7d7b64f5c2db67359e8f47013. Change-Id: I1b041712080d27a99a29e51f6f154601d38e2bf4 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | Fix "Empty filename passed to function" warningMitch Curtis2018-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Check if the string is empty before calling QFile::exists(). Change-Id: Ib6640e05272ee67dad48bd6874a5064eda4ba3dc Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
| * | Merge 5.10 into 5.10.0Oswald Buddenhagen2017-11-201-1/+1
| |\ \ | | | | | | | | | | | | Change-Id: I4d0130911f5fbf897006aca74614a57d5dc0d967
| * | | Doc: Highlight the Qt Quick Virtual Keyboard exampleTopi Reinio2017-11-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-60664 Change-Id: If27459f44dbd4c4c7f5f6d0d8d8826f3c7f5a030 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Nico Vertriest <nico.vertriest@qt.io>
* | | | Show all language options for the language selection listJarkko Koivikko2018-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The language list filter mechanism 'customLayoutsOnly' was implemented for language toggle function and does not make sense when language is selected from a list. Change-Id: Ibe834c07a0a851a7beabf8cc40997ab6a22cc769 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | Add support for external language switchJarkko Koivikko2018-01-194-4/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new signal InputPanel::externalLanguageSwitch and a property InputPanel::externalLanguageSwitchEnabled for enabling external language switch. If the externalLanguageSwitchEnabled is true, the signal is triggered instead of built-in language popup. The new language can be selected by setting the VirtualKeyboardSettings::locale property. [ChangeLog] Add option to use external language dialog instead of built-in language popup. Change-Id: I44f88e6b3e52db4cfbee02bd3b6d7f4be38a9521 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-207-11/+49
|\ \ \ \ | | |/ / | |/| | | | | | Change-Id: I5a7bd61e95ee062299b28e27aad22858d9b1d052
| * | | Merge remote-tracking branch 'origin/5.9' into 5.10Liang Qi2017-11-151-1/+1
| |\ \ \ | | |/ / | |/| / | | |/ Change-Id: Ibc2d7de394ba34863ba56a3b3eac05aab2921112
| | * Fix build of pinyin plugin on platforms without pthreadJake Petroules2017-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...such as VxWorks. Normally, the Qt dependency pulls in pthread, because the qt feature adds the thread feature (which in turn adds pthread and other necessary flags to the compiler and linker command lines), but in this case we don't have Qt so it must be manually added. Use the higher level abstraction instead of the direct -pthread flag, so that the compiler and linker flags used are taken from mkspecs. Task-number: QTBUG-63516 Change-Id: I88876810129078dfe4898314e45379ff87f95b80 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
| * | Merge remote-tracking branch 'origin/5.9' into 5.10v5.10.0-beta4Liang Qi2017-10-304-6/+6
| |\| | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I471b847231e6c09a79d8f0b1695a15b4651839da
| | * Ensure that EnterKey.label is actually shownMitch Curtis2017-09-152-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ternary expressions were the wrong way around. This patch also makes the disabled EnterKey text more visible, as it was very hard to see before. Change-Id: I73b61ac7076e4c132c78e2c40be294e45bef3cc9 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| | * SelectionListModel: Fix use after freeMitch Curtis2017-09-122-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling InputEngine::setInputMethod(null) did not clear the pointer value stored in SelectionListModelPrivate. Also, in case the input method is destroyed without setting it null, prevent use of dangling pointer in selection list model by using QPointer. Task-number: QTBUG-61308 Change-Id: If340d99a63489c54414497c61cd482e06a21c5ee Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | HandwritingGestureRecognizer: Fix clazy-strict-iteratorsv5.10.0-beta3Friedemann Kleint2017-10-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | In addition, fix repetetive invocation of end(). Change-Id: I69c659e566dab8957cae3f50ae3e2671d0cc1ba3 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>