summaryrefslogtreecommitdiffstats
path: root/demos/declarative
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-08-24 01:17:38 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-08-24 01:17:38 (GMT)
commitdf432c12585e00b682776f5c8a879611a0f07ef7 (patch)
tree9e7e6ed4d2ae790310ddec0a2a8f6eefebe07e5f /demos/declarative
parent9c6472491c9d5ac23696767388bdeb8337e2e0ee (diff)
downloadQt-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')
-rw-r--r--demos/declarative/webbrowser/fieldtext/FieldText.qml5
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()
}