summaryrefslogtreecommitdiffstats
path: root/examples/declarative/aspectratio/scale_to_fit_simple.qml
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-09-22 00:24:23 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-09-22 00:24:23 (GMT)
commit7aee99a762280251297486f118ca2a3cd6762883 (patch)
tree454e2e2695941e0a26066e8752611f4d55774bbb /examples/declarative/aspectratio/scale_to_fit_simple.qml
parentd125e01313b269d70577975f6e78d28a9105ada1 (diff)
downloadQt-7aee99a762280251297486f118ca2a3cd6762883.zip
Qt-7aee99a762280251297486f118ca2a3cd6762883.tar.gz
Qt-7aee99a762280251297486f118ca2a3cd6762883.tar.bz2
Syntax update
id must not be a type Image::fillMode change
Diffstat (limited to 'examples/declarative/aspectratio/scale_to_fit_simple.qml')
-rw-r--r--examples/declarative/aspectratio/scale_to_fit_simple.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/declarative/aspectratio/scale_to_fit_simple.qml b/examples/declarative/aspectratio/scale_to_fit_simple.qml
index 4ee06ba..dcccd69 100644
--- a/examples/declarative/aspectratio/scale_to_fit_simple.qml
+++ b/examples/declarative/aspectratio/scale_to_fit_simple.qml
@@ -1,19 +1,19 @@
import Qt 4.6
// Here, we implement "Scale to Fit" behaviour, using the
-// preserveAspect property.
+// fillMode property.
//
Rectangle {
// default size: whole image, unscaled
- width: Image.width
- height: Image.height
+ width: Face.width
+ height: Face.height
color: "gray"
clip: true
Image {
- id: Image
+ id: Face
source: "pics/face.png"
- fillMode: "PreserveAspect"
+ fillMode: "PreserveAspectFit"
anchors.fill: parent
}
}