summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/common
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/flickr/common
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/flickr/common')
-rw-r--r--demos/declarative/flickr/common/MediaLineEdit.qml9
1 files changed, 2 insertions, 7 deletions
diff --git a/demos/declarative/flickr/common/MediaLineEdit.qml b/demos/declarative/flickr/common/MediaLineEdit.qml
index eab0b95..094571f 100644
--- a/demos/declarative/flickr/common/MediaLineEdit.qml
+++ b/demos/declarative/flickr/common/MediaLineEdit.qml
@@ -26,7 +26,7 @@ Item {
width: 100
}
PropertyChanges {
- target: Proxy
+ target: Container
focus: true
}
StateChangeScript {
@@ -96,12 +96,7 @@ Item {
anchors.left: Label.right
anchors.verticalCenter: Container.verticalCenter
}
- KeyProxy {
- id: Proxy
- anchors.left: Container.left
- anchors.fill: Container
- targets: [(ReturnKey), (Editor)]
- }
+ Keys.forwardTo: [(ReturnKey), (Editor)]
Item {
id: ReturnKey
Keys.onReturnPressed: "Container.state = ''"