summaryrefslogtreecommitdiffstats
path: root/examples/declarative/aspectratio
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/aspectratio')
-rw-r--r--examples/declarative/aspectratio/scale_and_crop_simple.qml2
-rw-r--r--examples/declarative/aspectratio/scale_to_fit_simple.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/aspectratio/scale_and_crop_simple.qml b/examples/declarative/aspectratio/scale_and_crop_simple.qml
index 9cc9c19..434e98e 100644
--- a/examples/declarative/aspectratio/scale_and_crop_simple.qml
+++ b/examples/declarative/aspectratio/scale_and_crop_simple.qml
@@ -13,7 +13,7 @@ Rectangle {
Image {
id: face
source: "pics/face.png"
- fillMode: "PreserveAspectCrop"
+ fillMode: Image.PreserveAspectCrop
anchors.fill: parent
}
}
diff --git a/examples/declarative/aspectratio/scale_to_fit_simple.qml b/examples/declarative/aspectratio/scale_to_fit_simple.qml
index f7fcd8b..83909ef 100644
--- a/examples/declarative/aspectratio/scale_to_fit_simple.qml
+++ b/examples/declarative/aspectratio/scale_to_fit_simple.qml
@@ -13,7 +13,7 @@ Rectangle {
Image {
id: face
source: "pics/face.png"
- fillMode: "PreserveAspectFit"
+ fillMode: Image.PreserveAspectFit
anchors.fill: parent
}
}