summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-26 05:18:54 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-26 05:18:54 (GMT)
commitf16d60399b996b09b779d2a719b5e6e6b9a80903 (patch)
tree6fdb5a62ad77a5b59b57b65f284acf909a549139 /examples
parentca90afcf32d9ba083b34f5cef3c7bde6300844f4 (diff)
downloadQt-f16d60399b996b09b779d2a719b5e6e6b9a80903.zip
Qt-f16d60399b996b09b779d2a719b5e6e6b9a80903.tar.gz
Qt-f16d60399b996b09b779d2a719b5e6e6b9a80903.tar.bz2
sourceWidth/sourceHeight -> sourceSize
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/images/images.qml23
1 files changed, 11 insertions, 12 deletions
diff --git a/examples/declarative/images/images.qml b/examples/declarative/images/images.qml
index 82848df..35ce1ab 100644
--- a/examples/declarative/images/images.qml
+++ b/examples/declarative/images/images.qml
@@ -15,14 +15,14 @@ Rectangle {
}
Image {
- sourceWidth: 50
- sourceHeight: 50
+ sourceSize.width: 50
+ sourceSize.height: 50
source: "content/lemonade.jpg"
}
Image {
- sourceWidth: 50
- sourceHeight: 50
+ sourceSize.width: 50
+ sourceSize.height: 50
smooth: true
source: "content/lemonade.jpg"
}
@@ -34,15 +34,15 @@ Rectangle {
Image {
scale: 1/3
- sourceWidth: 50
- sourceHeight: 50
+ sourceSize.width: 50
+ sourceSize.height: 50
source: "content/lemonade.jpg"
}
Image {
scale: 1/3
- sourceWidth: 50
- sourceHeight: 50
+ sourceSize.width: 50
+ sourceSize.height: 50
smooth: true
source: "content/lemonade.jpg"
}
@@ -54,15 +54,14 @@ Rectangle {
Image {
width: 50; height: 50; transform: Translate { x: 50 }
- sourceWidth: 50
- sourceHeight: 50
+ sourceSize.width: 50
+ sourceSize.height: 50
source: "content/lemonade.jpg"
}
Image {
width: 50; height: 50; transform: Translate { x: 50 }
- sourceWidth: 50
- sourceHeight: 50
+ sourceSize: "50x50" // syntactic sugar
smooth: true
source: "content/lemonade.jpg"
}