summaryrefslogtreecommitdiffstats
path: root/examples/declarative/aspectratio/scale_and_crop.qml
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-23 05:17:41 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-23 05:17:41 (GMT)
commit3083b436bd3adc6280d3b7ebcb75358454cb9623 (patch)
tree0eb451db7cc183c126e19617faa26b12f8af3c51 /examples/declarative/aspectratio/scale_and_crop.qml
parent055fa76e7575be55899127de2d254e0f0e90a1db (diff)
parent39d728dd76efa10ca297b76ed08a5cd1c0235b3f (diff)
downloadQt-3083b436bd3adc6280d3b7ebcb75358454cb9623.zip
Qt-3083b436bd3adc6280d3b7ebcb75358454cb9623.tar.gz
Qt-3083b436bd3adc6280d3b7ebcb75358454cb9623.tar.bz2
Merge remote branch 'origin/master' into bearermanagement/staging
Diffstat (limited to 'examples/declarative/aspectratio/scale_and_crop.qml')
-rw-r--r--examples/declarative/aspectratio/scale_and_crop.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/declarative/aspectratio/scale_and_crop.qml b/examples/declarative/aspectratio/scale_and_crop.qml
index 283e24b..2e2b6ed 100644
--- a/examples/declarative/aspectratio/scale_and_crop.qml
+++ b/examples/declarative/aspectratio/scale_and_crop.qml
@@ -12,6 +12,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