aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/virtualkeyboardsettings.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QRegExp include cleanupSamuel Gaist2017-03-131-0/+1
| | | | | | | This patch adds the missing include statements for QRegExp. Change-Id: I8dc1f257e34b20e93ba4d64da9c7ab8f5f97e88d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Add full screen input mode for super wide screensJarkko Koivikko2017-01-301-0/+33
| | | | | | | | | | | | | In full screen mode the virtual keyboard replicates the contents of the focused input field to full screen input field located on top of keyboard. This mode can be activated by VirtualKeyboardSettings.fullScreenMode. [ChangeLog] Added full screen input mode for super wide screens. Change-Id: Ib2650c04767fb0945cc2bedc5b1801d254a15a41 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add new feature "Auto commit word"Jarkko Koivikko2017-01-201-0/+22
| | | | | | | | | | | | | | | This feature, when enabled, automatically commits the remaining single word in the word candidate list, when there was initially multiple candidates. This feature can be enabled from settings using VirtualKeyboardSettings.wordSelectionList.autoCommitWord property. [ChangeLog] Added support for automatic selection of the only remaining word in the suggestion list. Change-Id: Iecfafcaeb3ccb72e1d8e53b92c395b0d1dc84163 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Automatically hide word candidate listJarkko Koivikko2017-01-201-4/+69
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Merge remote-tracking branch 'origin/5.8' into devLiang Qi2016-12-121-2/+11
|\ | | | | | | | | | | | | | | Conflicts: src/config.pri tests/auto/inputpanel/data/tst_inputpanel.qml Change-Id: Ib84bbfee8097cf807dbdffb37dfdfc344fc2dbbf
| * Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-261-2/+11
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/virtualkeyboard/doc/qtvirtualkeyboard.qdocconf Change-Id: I2aac70f4bf65794c73096ec575c9f72bc63ec61c
| | * Doc: Use standard documentation structure for the moduleLeena Miettinen2016-10-131-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Link to separate QML types and C++ classes topics from front page (instead of listing the types there) - Turn the \page topic that lists all QML types into the \qmlmodule topic for the module - Add a \module topic to list C++ classes - Add \ingroup, \title, and \brief commands to \qmlmodule topics to display the docs correctly in tables - Add standard content to \qmlmodule topics - Remove unused \qmlmodule topics - Fix \inmodule commands as necessary Change-Id: I6f6538264fff2ad38994114a2fed7212495a18c2 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
| | * Doc: Fix typo in type nameLeena Miettinen2016-10-121-1/+1
| | | | | | | | | | | | | | | Change-Id: Ic5248c0fad4c23bb3b3fbe0c71d315fbdf07f54c Reviewed-by: Nico Vertriest <nico.vertriest@theqtcompany.com>
* | | Implement external keyboard layouts supportGordan Markuš2016-11-161-0/+50
|/ / | | | | | | | | | | | | | | | | | | | | | | | | * Add possibility to override and exclude built-in keyboard layouts * Add QT_VIRTUALKEYBOARD_LAYOUT_PATH environment variable specifying the layout location on the file system or inside a qrc resource * Update documentation accordingly [ChangeLog] Add support for external keyboard layouts, which allows overriding and exclusion of the built-in keyboard layouts Task-number: QTBUG-54254 Change-Id: I960b942c031221d29dbdf1cabed78be8d32f43ef Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* / Enable loading styles from multiple import pathsJeremy Katz2016-07-201-4/+1
|/ | | | | | | | | | | | | | | | Import was previously allowed from two locations: * qrc:/QtQuick/VirtualKeyboard/content/styles/ * The first import path containing QtQuick/VirtualKeyboard/Styles/ This prevents an application-supplied style outside of these locations from being used, even if the style name is unique. [ChangeLog] Added support for styles in any Qml import path under the directory QtQuick/VirtualKeyboard/Styles/<style> Change-Id: Ie6034709182f182efacb0317e49d095d51ced5a6 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Remove 'enterprise' from QML imports and QRC prefixesMitch Curtis2016-04-261-8/+8
| | | | | | | | | [ChangeLog] Renamed QML import from "import QtQuick.Enterprise.VirtualKeyboard" to "import QtQuick.VirtualKeyboard", as the module is now open-source. Change-Id: I240a3c1b598ca4aa41d2aad02b6e548622308833 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Use {QFile,QFileInfo}::exists(f) instead of {QFile,QFileInfo}(f).exists().Anton Kudryavtsev2016-03-171-1/+1
| | | | | | | It's faster. Change-Id: Ic8fba4775a45d0eeb3cfd45eb40e51d14d3dce3f Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Replace foreach with range-based forAnton Kudryavtsev2016-03-101-1/+1
| | | | | | | | | | | Use qAsConst to prevent detaching where it's needed. qAsConst is not acceptable for rvalues, therefore catch them by const auto. Result: reduce text size. Change-Id: If773827f24dc5a45c264ad2ed6060c1a99720040 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-alpha1Liang Qi2016-02-241-4/+11
|\ | | | | | | Change-Id: Ib2e0f6c524f72a6048ce4880fcd5494a26a0d199
| * Look for styles in all import paths.Friedemann Kleint2016-01-291-4/+11
| | | | | | | | | | | | | | | | | | The assumption that the QML import path is always last fails for the deployed case, in which the imports are directory under the binaries. Task-number: QTBUG-50730 Change-Id: Iea8b73d78375b6d211095fcb8ecc00e2127f4884 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | 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>
* Refactor resource pathsJarkko Koivikko2015-10-281-1/+1
| | | | | | | | This change modifies the internal resource paths and makes them unique in the global context to avoid conflict with the application namespace. Change-Id: I72b17b744e07f5a94bb5ba99f3632d7f67b307ae Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Refactor class namesJarkko Koivikko2015-10-281-0/+278
Since the virtual keyboard C++ interface is wrapped inside a namespace, it is possible to get rid of "Declarative" name in the class names, that would otherwise conflict with the QML namespace in the documentation. - Rename DeclarativeSettings to VirtualKeyboardSettings - Remove "Declarative" from class names The rationale for this change is that the name Declarative refers to now obsolete QtQuick1 module. Also, the class names are now the same in C++ and QML name spaces. Change-Id: Ide050d47110443d894d95d35dddf0df5891587be Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>