From b58953fae3dc80c52e846d2d87856dd20b8986ab Mon Sep 17 00:00:00 2001 From: Libor Tomsik Date: Thu, 7 Mar 2013 08:37:08 +0100 Subject: Fixed tutorial gettingStartedQml part5. In FileDialog.qml the selector GridView.view.currentIndex does not work, replaced with dirView.currentIndex Change-Id: I7c1893ce3872c41fc4f0fd63bad0e6a2cff2b207 Reviewed-by: Jerome Pasion --- examples/quick/tutorials/gettingStartedQml/core/FileDialog.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/quick') diff --git a/examples/quick/tutorials/gettingStartedQml/core/FileDialog.qml b/examples/quick/tutorials/gettingStartedQml/core/FileDialog.qml index 3564b0d06d..dc3ad09c9c 100644 --- a/examples/quick/tutorials/gettingStartedQml/core/FileDialog.qml +++ b/examples/quick/tutorials/gettingStartedQml/core/FileDialog.qml @@ -102,8 +102,8 @@ Rectangle { anchors.centerIn: parent text: name color: "#BDCACD" - font.weight: GridView.view.currentIndex == index ? Font.DemiBold : Font.Normal - font.pointSize: GridView.view.currentIndex == index ? 12 : 10 + font.weight: dirView.currentIndex == index ? Font.DemiBold : Font.Normal + font.pointSize: dirView.currentIndex == index ? 12 : 10 elide: Text.ElideMiddle horizontalAlignment: Text.AlignHCenter } @@ -113,8 +113,8 @@ Rectangle { anchors.centerIn: parent radius: 10 antialiasing: true - scale: GridView.view.currentIndex == index ? 1 : 0.5 - opacity: GridView.view.currentIndex == index ? 1 : 0 + scale: dirView.currentIndex == index ? 1 : 0.5 + opacity: dirView.currentIndex == index ? 1 : 0 Text { id: overlay width: parent.width @@ -141,7 +141,7 @@ Rectangle { hoverEnabled: true onClicked: { - GridView.view.currentIndex = index + dirView.currentIndex = index selectedFile = directory.files[index].name selectChanged() } -- cgit v1.2.3