aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Use function syntax for Connectionv5.15.0-beta4Samuli Piippo2020-04-031-3/+3
| | | | | | | Implicitly defined onFoo properties in Connections are deprecated. Change-Id: Id91f2f20a95e2b66cc0b8d2c2ce76d632c607f34 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Merge remote-tracking branch 'origin/5.14.0' into 5.14Qt Forward Merge Bot2019-12-131-0/+5
|\ | | | | | | Change-Id: I41e5655ff707faecd8f6c0d3d5dc17bdd3dad0c7
| * Fix warnings about Binding's new restoreMode propertyv5.14.0-rc2v5.14.0Mitch Curtis2019-12-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | The warning is: QML Binding: Not restoring previous value because restoreMode has not been set. This behavior is deprecated. In Qt < 6.0 the default is Binding.RestoreBinding. In Qt >= 6.0 the default is Binding.RestoreBindingOrValue. Fixes: QTBUG-80523 Change-Id: I18721419c2822aa80373d16f7e142e42bafe317c Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | example/basic: Fix full screen handwriting toggleJarkko Koivikko2019-11-261-1/+1
|/ | | | | | | | | - Due to bug in the basic example, the input controls were not responding to touch/mouse after toggling full screen handwriting mode from active state. Change-Id: I89a512a2f9bdd4a9b9ad10d7b269e99d3bef77d2 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Trim InputContext APIJarkko Koivikko2018-08-271-1/+1
| | | | | | | | | | | | | | | | | The purpose of this change is to reduce the number of public API in the virtual keyboard. This change moves a lot of stuff from InputContext to ShiftHandler and InputContextPrivate and exposes the private API to QML through InputContext.priv property. Almost all the unrelevant APIs were moved away, except some properties and methods needed by selection control. These were left intact because moving them is not trivial. Change-Id: I1f23f5f54bc21c68996cb220a66d16d34b5d14ce Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* Fix EnterKey attached typeJarkko Koivikko2018-08-232-1/+7
| | | | | | | | | EnterKey attached type has been broken since converting the Basic app to QuickControls2. Change-Id: If7a645b7706f6fc322b3cc39122b668cb88308ec Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix regression in Basic app, text selection by mouse not enabledJarkko Koivikko2018-08-232-0/+2
| | | | | | | Prior to QuickControls2 upgrade, text selection by mouse was enabled. Change-Id: I9ccd4f77bcc27a4466d6f362d034aef29df69c28 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix AutoScrollerJarkko Koivikko2018-08-201-8/+5
| | | | | | | | | | | | | | | Use the timer properly, restarting the timer instead of calling onTriggered handler directly. Connect to Qt.inputMethod.animation property, and update auto scroll when the animation ends. Simplify signal Connection usage, remove duplicate Connection instances and just target Qt.inputMethod uncoditionally. Task-number: QTBUG-66294 Change-Id: Ie82f91cbc8ef84b4a453fa981f2e638bec190073 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Revert "basic example: ensure AutoScroller scrolls correctly when first opened"Jarkko Koivikko2018-08-203-39/+55
| | | | | | | | | | | | This reverts commit 5f1b15d2c54a6930cf8164598f1d540840540540. This change actually broke the AutoScroller. The actual fix is commit 27696915b7977e245082dbb534d36f2165437378. Change-Id: I0be3ab7b583a63d771cea9df37ed0b1f775bce7c Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* basic example: ensure AutoScroller scrolls correctly when first openedMitch Curtis2018-04-043-55/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | In AutoScroller.qml, the following line target: inputItem && !Qt.inputMethod.animating ? Qt.inputMethod : null prevents onKeyboardRectangleChanged from getting executed. Even though Qt.inputMethod.animating is updated before the rectangle is updated, the handler still doesn't get emitted. Since the VKB only emits keyboardRectangleChanged when the input method is not animating (see the binding in Keyboard.qml), we can safely remove that check. That just leaves one more issue: clicking in an input field, then clicking outside of it (on the MouseArea) to hide the keyboard, then clicking back in a lower text field will not cause AutoScroller to scroll. In this case, onInputItemChanged is called, but the if checks (mentioned at the top of the description of the bug report) use the full height of the flickable before it's reduced to account for the keyboard. Subtracting the height of the keyboardRectangle from the flickable's height didn't work, so that issue needs to be fixed separately. Task-number: QTBUG-66294 Change-Id: I3733bb6be05443748eb873d76daee428be9687e8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Use Qt Quick Controls 2 in the basic exampleMitch Curtis2018-03-069-259/+69
| | | | | | | | | | | | | - 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>
* Support for Q_OS_ANDROID_EMBEDDED and android-embedded buildsOtto Ryynänen2017-04-241-1/+1
| | | | | | | | | | | | | A Native Android build (Boot to Qt Android injection) is defined by having both Q_OS_ANDROID and Q_OS_ANDROID_EMBEDDED flags defined, as well as having Qt config android-embedded. Those flags are set in mkspecs when building for embedded Android. This commit enables the possibility to build native Android builds (i.e. Qt build for Android baselayer only, without JNI) Change-Id: I3f88568f34502c6cfafadbbebd4dd2212a3cd0c4 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add full screen input mode for super wide screensJarkko Koivikko2017-01-302-5/+13
| | | | | | | | | | | | | 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>
* Avoid unnecessary input method queries during input panel animationJarkko Koivikko2017-01-141-0/+6
| | | | | | | | Add an example binding for InputContext.animating property. This is for avoiding unnecessary queries during animation. Change-Id: I654e0152ff7514e92abb7036ba51afd14ee63fc6 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-05-194-4/+4
|\ | | | | | | | | | | | | | | | | Conflicts: src/virtualkeyboard/lipisharedrecognizer.cpp src/virtualkeyboard/styles/styles.pro src/virtualkeyboard/virtualkeyboard.pro Change-Id: I150f2ad265f8a7bd07be1d9415cdad854e200e87
| * Fix basic embedded exampleJarkko Koivikko2016-05-024-4/+4
| | | | | | | | | | | | | | QML component must start with a capital letter. Change-Id: Icd7821583796004c48c152daa0cb749166e99255 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Remove the traces of the discontinued android-no-sdk platformEirik Aavitsland2016-05-181-1/+1
| | | | | | | | | | Change-Id: I29685ecf747db2e573e5b95e93c56171bcd72a29 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* | Bump version number to 2.1Mitch Curtis2016-04-266-6/+6
| | | | | | | | | | Change-Id: Idc71754cae27cb4222e2a5073533a4830e06f45d Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
* | Remove 'enterprise' from QML imports and QRC prefixesMitch Curtis2016-04-266-6/+6
| | | | | | | | | | | | | | | | | | [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>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-04-2116-12/+13
|\| | | | | | | | | | | | | | | Conflicts: examples/virtualkeyboard/basic/basic.pro src/virtualkeyboard/doc/qtvirtualkeyboard.qdocconf Change-Id: I92b07ae67779bba37141408e28c6f67e1731383a
| * Flatten example install path and directory structureMitch Curtis2016-04-2016-3/+3
| | | | | | | | | | | | Change-Id: Ic270635b0c17578bc9f85cca2d9f3a7b49e33952 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
| * Rename "virtualkeyboard" example to "basic"Mitch Curtis2016-04-2015-8/+8
| | | | | | | | | | | | | | | | | | This is less confusing, given that the name of the module itself is so similar, and a bunch of directories are named the same. Change-Id: I406a729087a5a5a11a488ab3ba345b0119725a2d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
| * Specify a default size for the example for CONFIG+=disable-desktopMitch Curtis2016-04-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Currently, when testing the example on desktop with CONFIG+=disable-desktop, the window is tiny. That's because the current width and height evaluate to 0. This will only have an effect on Desktop; it will be ignored on embedded devices. Change-Id: I8b57c3dce62fa989adec960e4f2f72878a6073cb Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | remove weird install path for exampleOswald Buddenhagen2016-04-131-6/+2
| | | | | | | | | | | | | | the deployment system on top should deal with this. Change-Id: I1befb3e0c9bb6546afc59a40e525d1d600475a86 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | License updateKalle Viironen2016-01-129-81/+153
|/ | | | | | Change-Id: I0dc6af72a3ae52a0b97b704df84fb1a8197aeeb8 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com> Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Remove AutoScroller componentJarkko Koivikko2015-12-144-0/+102
| | | | | | | | | | | | | | The AutoScroller component is not well maintained and has not been validated to be working correctly except for the example app. This change moves the AutoScroller component to the example application. There was also a bug in the component. References to the flickable components were not cleared before updating. Task-number: QTRD-3784 Change-Id: Ie15b4b994c016a9d0c065a2e469f928fec15d265 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* [1/2] Fix static buildJarkko Koivikko2015-12-071-0/+4
| | | | | | | | | | | | | | | This change modifies the files that exist in the 1.3 version. Fix static build of the virtual keyboard: - Included instructions for the static build in the build doc. - Added missing resource initialization macros to the plugin.cpp. - Register QML module dependencies conditionally in the virtual keyboard plugin initialization. - Added missing attributes to the styles plugin qmldir file. - Renamed StylesPlugin class to QtVirtualKeyboardStylesPlugin. Change-Id: Idc1d35fbd95bd19932baaab13849a4a65d4e944f Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Improve build configurationJarkko Koivikko2015-12-071-1/+1
| | | | | | | | | | | | | | | | | Add new configuration flags to simplify the customization process of the virtual keyboard. - lang-<code> flag enables the specified language. - lang-all flag enables all the languages. - handwriting flag enables the handwriting input method (t9write or lipi-toolkit) Updated test cases and also fixed the virtual keyboard for single language support. Change-Id: I599816bed591bd193ad26cef0e9bf4812146e865 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix binding loop in the HandwritingModeButtonJarkko Koivikko2015-10-282-11/+17
| | | | | | | | | | | | | The binding loop occurs when resizing the example app compiled with disable-desktop CONFIG flag, e.g.: <Unknown File>: QML Drag: Binding loop detected for property "maximumY" Also, do not dynamically resize the button as the rest of the example application is fixed size too. Change-Id: I6f409947bd7c7697da394b61d7f732dd1dba4e49 Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* License Headers UpdateKalle Viironen2015-10-268-72/+96
| | | | | Change-Id: Iba2bd21b95dde1aac5750ac77856716e0c61e577 Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
* Add word reselection featureJarkko Koivikko2015-10-153-25/+7
| | | | | | | | | | | | | | | | | | | | | This change adds support for word reselection. By definition, word reselection means the ability to reselect any of the existing words in the text by touching/clicking the word. This change implements previously unused functionality provided by QPlatformInputContext::invokeMethod(). This functionality is essential for handling touch events inside a pre-edit text. The virtual keyboard example app was previously blocking this function by overriding the default touch handling for TextInput and TextEdit components. Word reselection is currently implemented for the following input methods: - HunspellInputMethod - LipiInputMethod (by inheriting HunspellInputMethod) - T9WriteInputMethod. Change-Id: I66731e2d2831d4b3d43dac0503cd564ffb4d490f Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add support for full screen handwriting inputJarkko Koivikko2015-10-077-1/+334
| | | | | | | | | | | | | | | | This change adds support for the full screen handwriting input. In full screen handwriting input, the user is able to use the whole application screen as a container for handwriting input. This feature is available to those application integrations, which integrate the new HandwritingInputPanel type to the application QML. The HandwritingInputPanel works as an add-on to the existing InputPanel, so it cannot be used exclusively without the InputPanel. Change-Id: I11530b9ccbc66aa59b210bec94d7bb87f0826370 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Update virtualkeyboard example colors for World Summit demoMitch Curtis2015-10-014-10/+10
| | | | | | | | Using the colors provided by Diana. Change-Id: I5948b68af0f6d3b8a33a95847ed92cc3b6920a9f Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Correct license headers.Mitch Curtis2015-09-157-70/+70
| | | | | | | | | | 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>
* Update version number to 2.0Jarkko Koivikko2015-08-315-5/+5
| | | | | | | | | | | Handwriting support was originally added as 1.4, but has been updated to 2.0 in this commit. Since the major version number has changed, all the components must be registered with the new major version number. Change-Id: I34c74f5dd24684423d153ff85a4a24eed8d4ffd1 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Make examples return -1 on load failures.Friedemann Kleint2015-07-281-0/+2
| | | | | | | | Avoid hanging processes and empty windows in case some module is not installed. Change-Id: I54a96ba0da9220198cc9443a581d632be1d6b903 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Update version number to 1.3Jarkko Koivikko2015-02-265-5/+5
| | | | | | Change-Id: I030e6a29d7e862c575e658a87aa8c22a268cfedb Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix rotation of the example appJarkko Koivikko2015-02-251-3/+4
| | | | | | | | | | Only rotate the application if the screen is in portrait layout. Task-number: QTRD-3493 Change-Id: I494ae9dce9724a185f8f217ab52535987e6e1a15 Reviewed-by: Samuli Piippo <samuli.piippo@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Don't use desktop input in QNXSamuli Piippo2015-01-211-1/+1
| | | | | Change-Id: Ibb86c7b949251b758130521d5172fa576364bed3 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Add support for Windows DesktopJarkko Koivikko2015-01-121-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed XcbInputPanel component to DesktopInputPanel. The new panel component provides unified support for both Xcb and Windows desktops. In ideal case there would be no need for platform specific code, but unfortunately that is not the case. For example in Xcb, using the QWindow::setMask combined with Qt::BypassWindowManagerHint does not work correctly. More complex regions (than a single rectangle) are not masked correctly. For this reason, the Xcb integration still uses the Xcb specific code to mask the transparent areas of the input panel. Changes to PlatformInputContext event filtering are needed because QPlatformInputContext::filterEvent() method is not functional in Windows. In this case the QObject::eventFilter() is used instead. Without these changes the arrow key navigation feature will not work. The desktop integration can now be disabled with disable-desktop flag instead of disable-xcb flag. While the disable-xcb still works, it is deprecated and will be removed in future releases. Please note that this change adds the Windows Desktop support for the core keyboard only. The complete Windows support including the 3rdparty libraries is added in other changes. Change-Id: Ib65118f715c86746fc7d12ea6d9a2e7ef6e15b09 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Change copyright noticeRainer Keller2014-10-067-21/+21
| | | | | | | | | - 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>
* Update version number to 1.2v1.2.0Jarkko Koivikko2014-09-045-5/+5
| | | | | Change-Id: I630901e9e7d8300043f896cfdf159160867ee349 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Do not commit the active word if reopening the keyboardJarkko Koivikko2014-08-141-1/+6
| | | | | | | | | | Previously the example application commits the active word every time a text field is touched. Now it commits the active word only if the keyboard is already visible. Task-number: QTRD-3061 Change-Id: Ice0780ed67cffe028fa64ccfb79bbac5f1dd9f55 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Increment API version to 1.1Jarkko Koivikko2014-06-255-5/+5
| | | | | | | | | | Make proper adjustments to documentation and qmldir files to remain backwards compatible with the applications still using the 1.0 version. Change-Id: I0a59065b09d4a0e60798629e98a0867c66b8dac8 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Update license headers.Mitch Curtis2014-06-237-7/+7
| | | | | | | | | | | "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>
* Add all possible input type fieldsRainer Keller2014-05-071-2/+38
| | | | | Change-Id: I2770ba9a777a3ad46458052016db101d6ac8949b Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Add predefined ids for EnterKeyActionJarkko Koivikko2014-05-064-4/+9
| | | | | | | | | | | | A predefined action id replaces the label in the enter key with an icon. Balanced all icons to use the same aspect ratio. Removed all custom margins used for icon positioning and sizing. Task-number: QTRD-2900 Change-Id: I159bcb4d53e8ceb8f51f4a8be24504e20262f37a Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Rainer Keller <rainer.keller@digia.com>
* Add attached properties for customizing the enter keyJarkko Koivikko2014-05-062-4/+6
| | | | | | | | | The new type EnterKeyAction provides the attached properties for the TextInput items. It currently supports the same properties as the current demo with "hard coded" properties. Change-Id: I3931453dc9f19fb7c3dd6cf72034f9eb0701f481 Reviewed-by: Rainer Keller <rainer.keller@digia.com>
* The password field in the virtual keyboard example hides all but last characterJarkko Koivikko2014-05-022-1/+9
| | | | | | | | | | Changed echoMode to TextInput.Password. Added new property TextField.passwordMaskDelay and make binding to TextInput.passwordMaskDelay if it contains the property. Task-number: QTRD-2818 Change-Id: I79b014aa8169f356ce069e0aa64867561355fcdf Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Use rectangle as background instead of imageRainer Keller2014-02-264-4/+4
| | | | | | | There is no need to have a plain color image as background. Change-Id: Ic101043e9c00400f1c7153512b93a314c373bc11 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>