summaryrefslogtreecommitdiffstats
path: root/demos/declarative
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-05-06 03:11:48 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-05-06 03:11:48 (GMT)
commite909d9a200c7a75dc23542f4603ce86fdc135bab (patch)
treebd7a16915d67c44b5ed10a50141bbc28fde8833d /demos/declarative
parent3e4116ff5337d41466904b2e381dfa74267264a8 (diff)
downloadQt-e909d9a200c7a75dc23542f4603ce86fdc135bab.zip
Qt-e909d9a200c7a75dc23542f4603ce86fdc135bab.tar.gz
Qt-e909d9a200c7a75dc23542f4603ce86fdc135bab.tar.bz2
Cleanup
Diffstat (limited to 'demos/declarative')
-rw-r--r--demos/declarative/snake/snake.qml6
-rw-r--r--demos/declarative/webbrowser/content/FlickableWebView.qml6
2 files changed, 6 insertions, 6 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
diff --git a/demos/declarative/webbrowser/content/FlickableWebView.qml b/demos/declarative/webbrowser/content/FlickableWebView.qml
index 46f45e0..50ea97d 100644
--- a/demos/declarative/webbrowser/content/FlickableWebView.qml
+++ b/demos/declarative/webbrowser/content/FlickableWebView.qml
@@ -105,14 +105,14 @@ Flickable {
property: "scale"
from: 1
to: 0 // set before calling
- easing.type: "Linear"
+ easing.type: Easing.Linear
duration: 200
}
NumberAnimation {
id: flickVX
target: flickable
property: "contentX"
- easing.type: "Linear"
+ easing.type: Easing.Linear
duration: 200
from: 0 // set before calling
to: 0 // set before calling
@@ -121,7 +121,7 @@ Flickable {
id: flickVY
target: flickable
property: "contentY"
- easing.type: "Linear"
+ easing.type: Easing.Linear
duration: 200
from: 0 // set before calling
to: 0 // set before calling