aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorLibor Tomsik <libor@tomsik.eu>2013-03-07 08:37:08 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-13 17:45:54 +0100
commitb58953fae3dc80c52e846d2d87856dd20b8986ab (patch)
tree308477bb9ecc432ca7027d634728eb00a03b412e /examples/quick
parent708483906f167977131a9efc9bb3bb76a454af84 (diff)
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 <jerome.pasion@digia.com>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/tutorials/gettingStartedQml/core/FileDialog.qml10
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()
}