aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2014-04-22 15:49:58 +0300
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2014-05-06 15:12:48 +0300
commit2059fbea77a7bfb24897f0c5a7bc77732ee57774 (patch)
tree6e3e3fddc6fc7aa97d2fd19296117574d0050185 /examples
parente21833184829612c8c85d6c88626ce7bdd65b3f6 (diff)
Add attached properties for customizing the enter key
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>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextArea.qml5
-rw-r--r--examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextField.qml5
2 files changed, 6 insertions, 4 deletions
diff --git a/examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextArea.qml b/examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextArea.qml
index 77bbcdcb..9729997f 100644
--- a/examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextArea.qml
+++ b/examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextArea.qml
@@ -17,6 +17,7 @@
****************************************************************************/
import QtQuick 2.0
+import QtQuick.Enterprise.VirtualKeyboard 1.0
TextBase {
id: textArea
@@ -41,8 +42,8 @@ TextBase {
TextEdit {
id: textEdit
- property alias enterKeyText: textArea.enterKeyText
- property alias enterKeyEnabled: textArea.enterKeyEnabled
+ EnterKeyAction.label: textArea.enterKeyText
+ EnterKeyAction.enabled: textArea.enterKeyEnabled
y: 6
focus: true
diff --git a/examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextField.qml b/examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextField.qml
index ff965174..5ce6c7db 100644
--- a/examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextField.qml
+++ b/examples/quick/enterprise/virtualkeyboard/virtualkeyboard/content/TextField.qml
@@ -17,6 +17,7 @@
****************************************************************************/
import QtQuick 2.0
+import QtQuick.Enterprise.VirtualKeyboard 1.0
TextBase {
id: textField
@@ -48,8 +49,8 @@ TextBase {
TextInput {
id: textInput
- property alias enterKeyText: textField.enterKeyText
- property alias enterKeyEnabled: textField.enterKeyEnabled
+ EnterKeyAction.label: textField.enterKeyText
+ EnterKeyAction.enabled: textField.enterKeyEnabled
y: 6
focus: true