From 00a72cd1f5aff15d5a3a59d61efd2f5653d7dd34 Mon Sep 17 00:00:00 2001 From: Yann Bodson Date: Mon, 23 May 2011 15:20:02 +1000 Subject: Fix QtDeclarative keyinteraction example Task-number: QTBUG-19033 --- examples/declarative/keyinteraction/focus/Core/GridMenu.qml | 2 +- examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/declarative/keyinteraction/focus/Core/GridMenu.qml b/examples/declarative/keyinteraction/focus/Core/GridMenu.qml index f3894fb..224d38b 100644 --- a/examples/declarative/keyinteraction/focus/Core/GridMenu.qml +++ b/examples/declarative/keyinteraction/focus/Core/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/Core/ListViewDelegate.qml b/examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml index 88c3624..8f9d022 100644 --- a/examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml +++ b/examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml @@ -68,7 +68,7 @@ Item { hoverEnabled: true onClicked: { - ListView.view.currentIndex = index + container.ListView.view.currentIndex = index container.forceActiveFocus() } } -- cgit v0.12