summaryrefslogtreecommitdiffstats
path: root/examples/declarative/aspectratio
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-07-23 00:15:14 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-07-23 00:15:14 (GMT)
commitdc602e3b9c4d5e4da1d57ed657d82e73401b4531 (patch)
tree6f1ec1972a6dbeea0830373fe534390da06e6869 /examples/declarative/aspectratio
parent8dc527a3837c937630c8bbbab034b8bc84d496fb (diff)
downloadQt-dc602e3b9c4d5e4da1d57ed657d82e73401b4531.zip
Qt-dc602e3b9c4d5e4da1d57ed657d82e73401b4531.tar.gz
Qt-dc602e3b9c4d5e4da1d57ed657d82e73401b4531.tar.bz2
Move all QML types to Qt/4.6 namespace.
Adjust examples and demos accordingly. As per QT-558
Diffstat (limited to 'examples/declarative/aspectratio')
-rw-r--r--examples/declarative/aspectratio/face_fit.qml2
-rw-r--r--examples/declarative/aspectratio/face_fit_animated.qml2
-rw-r--r--examples/declarative/aspectratio/scale_and_crop.qml2
-rw-r--r--examples/declarative/aspectratio/scale_and_sidecrop.qml2
-rw-r--r--examples/declarative/aspectratio/scale_to_fit.qml2
-rw-r--r--examples/declarative/aspectratio/scale_to_fit_simple.qml2
6 files changed, 12 insertions, 0 deletions
diff --git a/examples/declarative/aspectratio/face_fit.qml b/examples/declarative/aspectratio/face_fit.qml
index 3005d1b..95105e1 100644
--- a/examples/declarative/aspectratio/face_fit.qml
+++ b/examples/declarative/aspectratio/face_fit.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// Here, we implement a hybrid of the "scale to fit" and "scale and crop"
// behaviours which will crop up to 25% from *one* dimension if necessary
// to fully scale the other. This is a realistic algorithm, for example
diff --git a/examples/declarative/aspectratio/face_fit_animated.qml b/examples/declarative/aspectratio/face_fit_animated.qml
index 9036eeb..a1b9213 100644
--- a/examples/declarative/aspectratio/face_fit_animated.qml
+++ b/examples/declarative/aspectratio/face_fit_animated.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// Here, we extend the "face_fit" example with animation to show how truly
// diverse and usage-specific behaviours are made possible by NOT putting a
// hard-coded aspect ratio feature into the Image primitive.
diff --git a/examples/declarative/aspectratio/scale_and_crop.qml b/examples/declarative/aspectratio/scale_and_crop.qml
index 2f35fb5..20169f9 100644
--- a/examples/declarative/aspectratio/scale_and_crop.qml
+++ b/examples/declarative/aspectratio/scale_and_crop.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// Here, we implement "Scale and Crop" behaviour.
//
Rect {
diff --git a/examples/declarative/aspectratio/scale_and_sidecrop.qml b/examples/declarative/aspectratio/scale_and_sidecrop.qml
index 4b1eb63..c3aa742 100644
--- a/examples/declarative/aspectratio/scale_and_sidecrop.qml
+++ b/examples/declarative/aspectratio/scale_and_sidecrop.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// 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.
//
diff --git a/examples/declarative/aspectratio/scale_to_fit.qml b/examples/declarative/aspectratio/scale_to_fit.qml
index 867eb37..f6b14a4 100644
--- a/examples/declarative/aspectratio/scale_to_fit.qml
+++ b/examples/declarative/aspectratio/scale_to_fit.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// Here, we implement "Scale to Fit" behaviour "manually", rather
// than using the preserveAspect property.
//
diff --git a/examples/declarative/aspectratio/scale_to_fit_simple.qml b/examples/declarative/aspectratio/scale_to_fit_simple.qml
index 4f89586..f9c0e04 100644
--- a/examples/declarative/aspectratio/scale_to_fit_simple.qml
+++ b/examples/declarative/aspectratio/scale_to_fit_simple.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// Here, we implement "Scale to Fit" behaviour, using the
// preserveAspect property.
//