summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
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"
}