diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-03-26 05:18:54 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-03-26 05:18:54 (GMT) |
commit | f16d60399b996b09b779d2a719b5e6e6b9a80903 (patch) | |
tree | 6fdb5a62ad77a5b59b57b65f284acf909a549139 /examples | |
parent | ca90afcf32d9ba083b34f5cef3c7bde6300844f4 (diff) | |
download | Qt-f16d60399b996b09b779d2a719b5e6e6b9a80903.zip Qt-f16d60399b996b09b779d2a719b5e6e6b9a80903.tar.gz Qt-f16d60399b996b09b779d2a719b5e6e6b9a80903.tar.bz2 |
sourceWidth/sourceHeight -> sourceSize
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/images/images.qml | 23 |
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" } |