Fix QtDeclarative keyinteraction example
authorYann Bodson <yann.bodson@nokia.com>
Mon, 23 May 2011 05:20:02 +0000 (15:20 +1000)
committerYann Bodson <yann.bodson@nokia.com>
Mon, 23 May 2011 05:22:55 +0000 (15:22 +1000)
Task-number: QTBUG-19033
(cherry picked from commit 00a72cd1f5aff15d5a3a59d61efd2f5653d7dd34)

examples/declarative/keyinteraction/focus/Core/GridMenu.qml
examples/declarative/keyinteraction/focus/Core/ListViewDelegate.qml

index f3894fb..224d38b 100644 (file)
@@ -86,7 +86,7 @@ FocusScope {
                     hoverEnabled: true
 
                     onClicked: {
-                        GridView.view.currentIndex = index
+                        container.GridView.view.currentIndex = index
                         container.forceActiveFocus()
                     }
                 }
index 88c3624..8f9d022 100644 (file)
@@ -68,7 +68,7 @@ Item {
         hoverEnabled: true
 
         onClicked: {
-            ListView.view.currentIndex = index
+            container.ListView.view.currentIndex = index
             container.forceActiveFocus()
         }
     }