summaryrefslogtreecommitdiff
path: root/examples/tutorials/gettingStarted/gsQml/core/fileDialog.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/gettingStarted/gsQml/core/fileDialog.qml')
-rw-r--r--examples/tutorials/gettingStarted/gsQml/core/fileDialog.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/tutorials/gettingStarted/gsQml/core/fileDialog.qml b/examples/tutorials/gettingStarted/gsQml/core/fileDialog.qml
index 6ff1adff..573c1fc0 100644
--- a/examples/tutorials/gettingStarted/gsQml/core/fileDialog.qml
+++ b/examples/tutorials/gettingStarted/gsQml/core/fileDialog.qml
@@ -92,7 +92,7 @@ Rectangle {
Rectangle {
id:file
color: "transparent"
- width: GridView.view.cellWidth; height: GridView.view.cellHeight
+ width: file.GridView.view.cellWidth; height: file.GridView.view.cellHeight
Text {
id:fileName
@@ -100,8 +100,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: file.GridView.view.currentIndex == index ? Font.DemiBold : Font.Normal
+ font.pointSize: file.GridView.view.currentIndex == index ? 12 : 10
elide: Text.ElideMiddle
horizontalAlignment: Text.AlignHCenter
}
@@ -111,8 +111,8 @@ Rectangle {
anchors.centerIn: parent
radius: 10
smooth: true
- scale: GridView.view.currentIndex == index ? 1 : 0.5
- opacity: GridView.view.currentIndex == index ? 1 : 0
+ scale: file.GridView.view.currentIndex == index ? 1 : 0.5
+ opacity: file.GridView.view.currentIndex == index ? 1 : 0
Text {
id: overlay
width: parent.width
@@ -140,7 +140,7 @@ Rectangle {
hoverEnabled: true
onClicked: {
- GridView.view.currentIndex = index
+ file.GridView.view.currentIndex = index
selectedFile = directory.files[index].name
selectChanged()
}