summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-04-21 05:39:13 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-04-21 05:40:39 (GMT)
commitf2a7506e71125676303042388bdeca94b2677292 (patch)
tree2e8420f81a6c6ae1d4ec1defc65e73f6deba4655 /examples
parent62d40d166f77de67072eced7eac4f3c38697af52 (diff)
downloadQt-f2a7506e71125676303042388bdeca94b2677292.zip
Qt-f2a7506e71125676303042388bdeca94b2677292.tar.gz
Qt-f2a7506e71125676303042388bdeca94b2677292.tar.bz2
Cleanup declarative focus example.
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/focus/Core/GridMenu.qml4
-rw-r--r--examples/declarative/focus/Core/ListViewDelegate.qml5
2 files changed, 2 insertions, 7 deletions
diff --git a/examples/declarative/focus/Core/GridMenu.qml b/examples/declarative/focus/Core/GridMenu.qml
index c37b17a..3f727fd 100644
--- a/examples/declarative/focus/Core/GridMenu.qml
+++ b/examples/declarative/focus/Core/GridMenu.qml
@@ -43,9 +43,7 @@ FocusScope {
onClicked: {
GridView.view.currentIndex = index
- container.focus = true
- gridMenu.focus = true
- mainView.focus = true
+ container.forceFocus()
}
}
diff --git a/examples/declarative/focus/Core/ListViewDelegate.qml b/examples/declarative/focus/Core/ListViewDelegate.qml
index 96324d7..8f4763e 100644
--- a/examples/declarative/focus/Core/ListViewDelegate.qml
+++ b/examples/declarative/focus/Core/ListViewDelegate.qml
@@ -26,10 +26,7 @@ Component {
onClicked: {
ListView.view.currentIndex = index
- container.focus = true
- ListView.view.focus = true
- listViews.focus = true
- mainView.focus = true
+ container.forceFocus()
}
}