diff options
author | Nigel Hietala <nigel.hietala@nokia.com> | 2010-02-22 14:34:01 (GMT) |
---|---|---|
committer | Nigel Hietala <nigel.hietala@nokia.com> | 2010-02-22 14:34:01 (GMT) |
commit | e194fc49b3902edf6e0f4d13412730a67159b24c (patch) | |
tree | 96916fe607deb53daf75c1901bf577c7503726d1 /examples/declarative/aspectratio/scale_and_sidecrop.qml | |
parent | 66818ea9bc50af50bb26515cf667fe1c0c62a12d (diff) | |
download | Qt-e194fc49b3902edf6e0f4d13412730a67159b24c.zip Qt-e194fc49b3902edf6e0f4d13412730a67159b24c.tar.gz Qt-e194fc49b3902edf6e0f4d13412730a67159b24c.tar.bz2 |
Updated based on change to transformOrign
Diffstat (limited to 'examples/declarative/aspectratio/scale_and_sidecrop.qml')
-rw-r--r-- | examples/declarative/aspectratio/scale_and_sidecrop.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/declarative/aspectratio/scale_and_sidecrop.qml b/examples/declarative/aspectratio/scale_and_sidecrop.qml index c3ef859..8230e49 100644 --- a/examples/declarative/aspectratio/scale_and_sidecrop.qml +++ b/examples/declarative/aspectratio/scale_and_sidecrop.qml @@ -13,6 +13,7 @@ Rectangle { Image { id: face smooth: true + anchors.centerIn: parent source: "pics/face.png" x: (parent.width-width*scale)/2 y: (parent.height-height*scale)/2 |