summaryrefslogtreecommitdiffstats
path: root/demos/declarative/twitter
diff options
context:
space:
mode:
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: [