diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/keyinteraction/focus/qml/focus/FocusCore/GridMenu.qml | 2 | ||||
-rw-r--r-- | examples/declarative/keyinteraction/focus/qml/focus/FocusCore/ListViewDelegate.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/keyinteraction/focus/qml/focus/FocusCore/GridMenu.qml b/examples/declarative/keyinteraction/focus/qml/focus/FocusCore/GridMenu.qml index 5343efd..5e78eda 100644 --- a/examples/declarative/keyinteraction/focus/qml/focus/FocusCore/GridMenu.qml +++ b/examples/declarative/keyinteraction/focus/qml/focus/FocusCore/GridMenu.qml @@ -86,7 +86,7 @@ FocusScope { hoverEnabled: true onClicked: { - GridView.view.currentIndex = index + container.GridView.view.currentIndex = index container.forceActiveFocus() } } diff --git a/examples/declarative/keyinteraction/focus/qml/focus/FocusCore/ListViewDelegate.qml b/examples/declarative/keyinteraction/focus/qml/focus/FocusCore/ListViewDelegate.qml index 8f9701d..7af1fa0 100644 --- a/examples/declarative/keyinteraction/focus/qml/focus/FocusCore/ListViewDelegate.qml +++ b/examples/declarative/keyinteraction/focus/qml/focus/FocusCore/ListViewDelegate.qml @@ -68,7 +68,7 @@ Item { hoverEnabled: true onClicked: { - ListView.view.currentIndex = index + container.ListView.view.currentIndex = index container.forceActiveFocus() } } |