summaryrefslogtreecommitdiffstats
path: root/demos/declarative/twitter
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-09-07 03:13:25 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-09-07 03:13:25 (GMT)
commit9008c7002ffe6617ffcd602a7a9923e83e8b8f80 (patch)
tree784c075dccc463b8c40311455747a325f4ff3295 /demos/declarative/twitter
parent16cdd82a88a63ea050ab2cf70368e023fe50c5bd (diff)
downloadQt-9008c7002ffe6617ffcd602a7a9923e83e8b8f80.zip
Qt-9008c7002ffe6617ffcd602a7a9923e83e8b8f80.tar.gz
Qt-9008c7002ffe6617ffcd602a7a9923e83e8b8f80.tar.bz2
Remove KeyProxy in favour of the Keys.forwardTo attached property.
Diffstat (limited to 'demos/declarative/twitter')
-rw-r--r--demos/declarative/twitter/content/AuthView.qml6
-rw-r--r--demos/declarative/twitter/content/HomeTitleBar.qml8
2 files changed, 3 insertions, 11 deletions
diff --git a/demos/declarative/twitter/content/AuthView.qml b/demos/declarative/twitter/content/AuthView.qml
index 9ca4d88..7d0d865 100644
--- a/demos/declarative/twitter/content/AuthView.qml
+++ b/demos/declarative/twitter/content/AuthView.qml
@@ -29,11 +29,7 @@ Item {
maximumLength:21
font.bold: true
color: "#151515"; highlightColor: "green"
- KeyProxy {
- id: Proxy
- targets: [(tabber), (nameIn)]
- focus: true
- }
+ Keys.forwardTo: [(tabber), (nameIn)]
Item {
id: tabber
//Note: it's not working yet
diff --git a/demos/declarative/twitter/content/HomeTitleBar.qml b/demos/declarative/twitter/content/HomeTitleBar.qml
index 5cb8bea..9bca2c8 100644
--- a/demos/declarative/twitter/content/HomeTitleBar.qml
+++ b/demos/declarative/twitter/content/HomeTitleBar.qml
@@ -94,11 +94,7 @@ Item {
wrap:true
color: "#151515"; highlightColor: "green"
}
- KeyProxy {
- id: Proxy
- anchors.fill: parent
- targets: [(ReturnKey), (Editor)]
- }
+ Keys.forwardTo: [(ReturnKey), (Editor)]
Item {
id: ReturnKey
Keys.onReturnPressed: accept()
@@ -114,7 +110,7 @@ Item {
PropertyChanges { target: TagButton; text: "OK" }
PropertyChanges { target: TagButton; width: 28 }
PropertyChanges { target: TagButton; height: 24 }
- PropertyChanges { target: Proxy; focus: true }
+ PropertyChanges { target: txtEdit; focus: true }
}
]
transitions: [