summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/gettingStarted/gsQml/parts/part5/core
diff options
context:
space:
mode:
authorMatthew Vogt <matthew.vogt@nokia.com>2012-02-24 15:53:01 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-27 01:45:16 +0100
commitc9cf51b931961fdb0410a21e03b4cd8667560584 (patch)
treeff209bc056808bfeeb2c7a9cd3097be0031d0dc8 /examples/tutorials/gettingStarted/gsQml/parts/part5/core
parent6b96c229a5f04599c511843ce0fb8041a74c56b9 (diff)
Make the gettingStarted example runnable.
Remove the copyright header from the qmldir file, which causes it not parse correctly. Also update the delegate used in the file dialog to use the current syntax. Change-Id: I9452207fff5246389cdf54d862dd362942819ce3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'examples/tutorials/gettingStarted/gsQml/parts/part5/core')
-rw-r--r--examples/tutorials/gettingStarted/gsQml/parts/part5/core/FileDialog.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/tutorials/gettingStarted/gsQml/parts/part5/core/FileDialog.qml b/examples/tutorials/gettingStarted/gsQml/parts/part5/core/FileDialog.qml
index fb189e9f..807aa79f 100644
--- a/examples/tutorials/gettingStarted/gsQml/parts/part5/core/FileDialog.qml
+++ b/examples/tutorials/gettingStarted/gsQml/parts/part5/core/FileDialog.qml
@@ -99,7 +99,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
@@ -107,8 +107,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
}
@@ -118,8 +118,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
@@ -147,7 +147,7 @@ Rectangle {
hoverEnabled: true
onClicked:{
- GridView.view.currentIndex = index
+ file.GridView.view.currentIndex = index
selectedFile = directory.files[index].name
selectChanged()
}