summaryrefslogtreecommitdiffstats
path: root/examples/declarative/aspectratio/scale_and_sidecrop.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/aspectratio/scale_and_sidecrop.qml')
-rw-r--r--examples/declarative/aspectratio/scale_and_sidecrop.qml22
1 files changed, 0 insertions, 22 deletions
diff --git a/examples/declarative/aspectratio/scale_and_sidecrop.qml b/examples/declarative/aspectratio/scale_and_sidecrop.qml
deleted file mode 100644
index 5593ab8416..0000000000
--- a/examples/declarative/aspectratio/scale_and_sidecrop.qml
+++ /dev/null
@@ -1,22 +0,0 @@
-import Qt 4.7
-
-// Here, we implement a variant of "Scale and Crop" behaviour, where we
-// crop the sides if necessary to fully fit vertically, but not the reverse.
-//
-Rectangle {
- // default size: whole image, unscaled
- width: face.width
- height: face.height
- color: "gray"
- clip: true
-
- Image {
- id: face
- smooth: true
- anchors.centerIn: parent
- source: "pics/face.png"
- x: (parent.width-width*scale)/2
- y: (parent.height-height*scale)/2
- scale: parent.height/height
- }
-}