diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-08-24 01:17:38 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-08-24 01:17:38 (GMT) |
commit | df432c12585e00b682776f5c8a879611a0f07ef7 (patch) | |
tree | 9e7e6ed4d2ae790310ddec0a2a8f6eefebe07e5f /demos/declarative/webbrowser/fieldtext | |
parent | 9c6472491c9d5ac23696767388bdeb8337e2e0ee (diff) | |
download | Qt-df432c12585e00b682776f5c8a879611a0f07ef7.zip Qt-df432c12585e00b682776f5c8a879611a0f07ef7.tar.gz Qt-df432c12585e00b682776f5c8a879611a0f07ef7.tar.bz2 |
Fix WebViewSettings
More QML <-> JavaScript integration, with example.
From Tapani Mikola
Diffstat (limited to 'demos/declarative/webbrowser/fieldtext')
-rw-r--r-- | demos/declarative/webbrowser/fieldtext/FieldText.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/demos/declarative/webbrowser/fieldtext/FieldText.qml b/demos/declarative/webbrowser/fieldtext/FieldText.qml index 976785b..fe55185 100644 --- a/demos/declarative/webbrowser/fieldtext/FieldText.qml +++ b/demos/declarative/webbrowser/fieldtext/FieldText.qml @@ -60,7 +60,7 @@ Item { opacity: 0 } - LineEdit { + TextInput { id: textEdit text: fieldText.text focus: false @@ -72,8 +72,7 @@ Item { color: "black" font.bold: true readOnly: true - Keys.onEnterPressed: confirm() - Keys.onReturnPressed: confirm() + onAccepted: confirm() Keys.onEscapePressed: reset() } |