diff options
Diffstat (limited to 'examples/quick/tutorials/gettingStartedQml/core/FileDialog.qml')
-rw-r--r-- | examples/quick/tutorials/gettingStartedQml/core/FileDialog.qml | 10 |
1 files changed, 5 insertions, 5 deletions
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() } |