summaryrefslogtreecommitdiffstats
path: root/demos/declarative/snake
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-05-07 09:15:32 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-05-07 09:15:32 (GMT)
commit695ddc4a13233c8e6f626fa205336f90f8c5a565 (patch)
tree88da8a1d80219e5788db3f4e138d1d281bb3d816 /demos/declarative/snake
parent1824eb63f6b2f8baa26b20c57fc50db84eefaa30 (diff)
parent67bf465253db71c0eddbc6ffcb811dd65c00b207 (diff)
downloadQt-695ddc4a13233c8e6f626fa205336f90f8c5a565.zip
Qt-695ddc4a13233c8e6f626fa205336f90f8c5a565.tar.gz
Qt-695ddc4a13233c8e6f626fa205336f90f8c5a565.tar.bz2
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Conflicts: examples/declarative/dynamic/qml/itemCreation.js
Diffstat (limited to 'demos/declarative/snake')
-rw-r--r--demos/declarative/snake/snake.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/declarative/snake/snake.qml b/demos/declarative/snake/snake.qml
index 47bced4..bc4a974 100644
--- a/demos/declarative/snake/snake.qml
+++ b/demos/declarative/snake/snake.qml
@@ -60,7 +60,7 @@ Rectangle {
Image {
id: title
source: "content/pics/snake.jpg"
- fillMode: "PreserveAspectCrop"
+ fillMode: Image.PreserveAspectCrop
anchors.fill: parent
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
@@ -69,7 +69,7 @@ Rectangle {
Text {
color: "white"
font.pointSize: 24
- horizontalAlignment: "AlignHCenter"
+ horizontalAlignment: Text.AlignHCenter
text: "Last Score:\t" + lastScore + "\nHighscore:\t" + highScores.topScore;
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
@@ -78,7 +78,7 @@ Rectangle {
}
source: "content/pics/background.png"
- fillMode: "PreserveAspectCrop"
+ fillMode: Image.PreserveAspectCrop
anchors.left: parent.left
anchors.right: parent.right