summaryrefslogtreecommitdiffstats
path: root/examples/declarative
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
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')
-rw-r--r--examples/declarative/animation/animation.qml2
-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
-rw-r--r--examples/declarative/behaviours/MyRect.qml2
-rw-r--r--examples/declarative/behaviours/test.qml2
-rw-r--r--examples/declarative/clock/Clock.qml2
-rw-r--r--examples/declarative/clock/display.qml2
-rw-r--r--examples/declarative/connections/connections.qml2
-rw-r--r--examples/declarative/dial/DialLibrary/Dial.qml2
-rw-r--r--examples/declarative/dial/dial.qml2
-rw-r--r--examples/declarative/dynamic/DynRect.qml2
-rw-r--r--examples/declarative/dynamic/dynamic.qml2
-rw-r--r--examples/declarative/easing/easing.qml2
-rw-r--r--examples/declarative/extending/adding/example.qml2
-rw-r--r--examples/declarative/extending/attached/example.qml2
-rw-r--r--examples/declarative/extending/binding/example.qml2
-rw-r--r--examples/declarative/extending/coercion/example.qml2
-rw-r--r--examples/declarative/extending/default/example.qml2
-rw-r--r--examples/declarative/extending/extended/example.qml2
-rw-r--r--examples/declarative/extending/grouped/example.qml2
-rw-r--r--examples/declarative/extending/properties/example.qml2
-rw-r--r--examples/declarative/extending/signal/example.qml2
-rw-r--r--examples/declarative/extending/valuesource/example.qml2
-rw-r--r--examples/declarative/flowview/flickr.qml2
-rw-r--r--examples/declarative/flowview/flowview.qml2
-rw-r--r--examples/declarative/flowview/rect.qml2
-rw-r--r--examples/declarative/follow/follow.qml2
-rw-r--r--examples/declarative/follow/pong.qml2
-rw-r--r--examples/declarative/listview/content/MediaButton.qml2
-rw-r--r--examples/declarative/listview/dummydata/MyPetsModel.qml2
-rw-r--r--examples/declarative/listview/dummydata/Recipes.qml2
-rw-r--r--examples/declarative/listview/highlight.qml2
-rw-r--r--examples/declarative/listview/listview.qml2
-rw-r--r--examples/declarative/listview/recipes.qml2
-rw-r--r--examples/declarative/listview/sections.qml2
-rw-r--r--examples/declarative/loader/Browser.qml2
-rw-r--r--examples/declarative/loader/Button.qml2
-rw-r--r--examples/declarative/loader/loader.qml2
-rw-r--r--examples/declarative/minehunt/Description.qml2
-rw-r--r--examples/declarative/minehunt/Explosion.qml2
-rw-r--r--examples/declarative/minehunt/minehunt.qml2
-rw-r--r--examples/declarative/modules/builtin-version.qml2
-rw-r--r--examples/declarative/modules/installed-qualified.qml2
-rw-r--r--examples/declarative/modules/installed-version.qml2
-rw-r--r--examples/declarative/modules/installed.qml2
-rw-r--r--examples/declarative/modules/local-qualified.qml2
-rw-r--r--examples/declarative/modules/local.qml2
-rw-r--r--examples/declarative/modules/remote-qualified.qml2
-rw-r--r--examples/declarative/modules/remote-zipped.qml2
-rw-r--r--examples/declarative/modules/wrong-installed-version.qml2
-rw-r--r--examples/declarative/modules/wrong-installed.qml2
-rw-r--r--examples/declarative/modules/wrong-local-qualified.qml2
-rw-r--r--examples/declarative/modules/wrong-local.qml2
-rw-r--r--examples/declarative/modules/zipped-qualified.qml2
-rw-r--r--examples/declarative/modules/zipped.qml2
-rw-r--r--examples/declarative/mouseregion/mouse.qml2
-rw-r--r--examples/declarative/scrollbar/ScrollBar.qml2
-rw-r--r--examples/declarative/scrollbar/display.qml2
-rw-r--r--examples/declarative/slideswitch/Switch.qml2
-rw-r--r--examples/declarative/slideswitch/display.qml2
-rw-r--r--examples/declarative/snow/ImageBatch.qml2
-rw-r--r--examples/declarative/snow/Loading.qml2
-rw-r--r--examples/declarative/snow/snow.qml2
-rw-r--r--examples/declarative/states/states.qml2
-rw-r--r--examples/declarative/states/transitions.qml2
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1/Removebutton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml2
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2a/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/3/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/GroupBox.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1/ContactField.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1a/ContactField.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/2/ContactField.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/2_Reuse.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/3/Contact.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/4/Contact.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/GroupBox.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/1/ContactView.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/3_Collections.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/GroupBox.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/lib/Contact.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml2
-rw-r--r--examples/declarative/tutorials/helloworld/t1/tutorial1.qml2
-rw-r--r--examples/declarative/tutorials/helloworld/t2/Cell.qml2
-rw-r--r--examples/declarative/tutorials/helloworld/t2/tutorial2.qml2
-rw-r--r--examples/declarative/tutorials/helloworld/t3/Cell.qml2
-rw-r--r--examples/declarative/tutorials/helloworld/t3/tutorial3.qml2
-rw-r--r--examples/declarative/velocity/Day.qml2
-rw-r--r--examples/declarative/velocity/velocity.qml2
-rw-r--r--examples/declarative/webview/autosize.qml2
-rw-r--r--examples/declarative/webview/content/SpinSquare.qml2
-rw-r--r--examples/declarative/webview/inline-html.qml2
-rw-r--r--examples/declarative/webview/qml-in-html.qml2
-rw-r--r--examples/declarative/webview/transparent.qml2
-rw-r--r--examples/declarative/xmldata/daringfireball.qml2
-rw-r--r--examples/declarative/xmldata/yahoonews.qml2
120 files changed, 240 insertions, 0 deletions
diff --git a/examples/declarative/animation/animation.qml b/examples/declarative/animation/animation.qml
index 37e68d6..2ea6616 100644
--- a/examples/declarative/animation/animation.qml
+++ b/examples/declarative/animation/animation.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 400
height: 200
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.
//
diff --git a/examples/declarative/behaviours/MyRect.qml b/examples/declarative/behaviours/MyRect.qml
index dc9a094..1ccf4db 100644
--- a/examples/declarative/behaviours/MyRect.qml
+++ b/examples/declarative/behaviours/MyRect.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
radius: 15
pen.color: "black"
diff --git a/examples/declarative/behaviours/test.qml b/examples/declarative/behaviours/test.qml
index 4c092bf..abf30c5 100644
--- a/examples/declarative/behaviours/test.qml
+++ b/examples/declarative/behaviours/test.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
color: "lightsteelblue"
width: 800
diff --git a/examples/declarative/clock/Clock.qml b/examples/declarative/clock/Clock.qml
index 4779bd5..9720d0b 100644
--- a/examples/declarative/clock/Clock.qml
+++ b/examples/declarative/clock/Clock.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: Clock
width: 200; height: 200
diff --git a/examples/declarative/clock/display.qml b/examples/declarative/clock/display.qml
index 0187a7e..cd6dcf7 100644
--- a/examples/declarative/clock/display.qml
+++ b/examples/declarative/clock/display.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: contents.width
height: contents.height
diff --git a/examples/declarative/connections/connections.qml b/examples/declarative/connections/connections.qml
index e66875a..1f3d187 100644
--- a/examples/declarative/connections/connections.qml
+++ b/examples/declarative/connections/connections.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: rect
color: "blue"
diff --git a/examples/declarative/dial/DialLibrary/Dial.qml b/examples/declarative/dial/DialLibrary/Dial.qml
index 6cd42df..e3ea530 100644
--- a/examples/declarative/dial/DialLibrary/Dial.qml
+++ b/examples/declarative/dial/DialLibrary/Dial.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
property real value : 0
diff --git a/examples/declarative/dial/dial.qml b/examples/declarative/dial/dial.qml
index b183798..ab31852 100644
--- a/examples/declarative/dial/dial.qml
+++ b/examples/declarative/dial/dial.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "DialLibrary"
Rect {
color: "white"
diff --git a/examples/declarative/dynamic/DynRect.qml b/examples/declarative/dynamic/DynRect.qml
index d9a2ef3..3f83afb 100644
--- a/examples/declarative/dynamic/DynRect.qml
+++ b/examples/declarative/dynamic/DynRect.qml
@@ -1 +1,3 @@
+import Qt 4.6
+
Rect { color: "steelblue"; width: 100; height: 100; id: newRect }
diff --git a/examples/declarative/dynamic/dynamic.qml b/examples/declarative/dynamic/dynamic.qml
index b9f3b35..286e449 100644
--- a/examples/declarative/dynamic/dynamic.qml
+++ b/examples/declarative/dynamic/dynamic.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect { id: page; width: 800; height: 800; color:"black"
Script { source: "dynamic.js" }
property bool extendStars: false;
diff --git a/examples/declarative/easing/easing.qml b/examples/declarative/easing/easing.qml
index 4fdf512..e3c22c9 100644
--- a/examples/declarative/easing/easing.qml
+++ b/examples/declarative/easing/easing.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Window
width: 640
diff --git a/examples/declarative/extending/adding/example.qml b/examples/declarative/extending/adding/example.qml
index 5550cec..ba7af7a 100644
--- a/examples/declarative/extending/adding/example.qml
+++ b/examples/declarative/extending/adding/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ![0]
Person {
name: "Bob Jones"
diff --git a/examples/declarative/extending/attached/example.qml b/examples/declarative/extending/attached/example.qml
index 2645eac..20233f6 100644
--- a/examples/declarative/extending/attached/example.qml
+++ b/examples/declarative/extending/attached/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
BirthdayParty {
celebrant: Boy {
name: "Bob Jones"
diff --git a/examples/declarative/extending/binding/example.qml b/examples/declarative/extending/binding/example.qml
index 02c0229..cedb8bd 100644
--- a/examples/declarative/extending/binding/example.qml
+++ b/examples/declarative/extending/binding/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ![0]
BirthdayParty {
id: TheParty
diff --git a/examples/declarative/extending/coercion/example.qml b/examples/declarative/extending/coercion/example.qml
index 8bcb45a..5090782 100644
--- a/examples/declarative/extending/coercion/example.qml
+++ b/examples/declarative/extending/coercion/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ![0]
BirthdayParty {
celebrant: Boy {
diff --git a/examples/declarative/extending/default/example.qml b/examples/declarative/extending/default/example.qml
index 4023abb..5fe693a 100644
--- a/examples/declarative/extending/default/example.qml
+++ b/examples/declarative/extending/default/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ![0]
BirthdayParty {
celebrant: Boy {
diff --git a/examples/declarative/extending/extended/example.qml b/examples/declarative/extending/extended/example.qml
index 040c324..a276211 100644
--- a/examples/declarative/extending/extended/example.qml
+++ b/examples/declarative/extending/extended/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ![0]
QLineEdit {
leftMargin: 20
diff --git a/examples/declarative/extending/grouped/example.qml b/examples/declarative/extending/grouped/example.qml
index b9e5e6b..1be7abe 100644
--- a/examples/declarative/extending/grouped/example.qml
+++ b/examples/declarative/extending/grouped/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ![0]
BirthdayParty {
celebrant: Boy {
diff --git a/examples/declarative/extending/properties/example.qml b/examples/declarative/extending/properties/example.qml
index 63bb77b..326105a 100644
--- a/examples/declarative/extending/properties/example.qml
+++ b/examples/declarative/extending/properties/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ![0]
BirthdayParty {
celebrant: Person {
diff --git a/examples/declarative/extending/signal/example.qml b/examples/declarative/extending/signal/example.qml
index f3e4747..1cbaab4 100644
--- a/examples/declarative/extending/signal/example.qml
+++ b/examples/declarative/extending/signal/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ![0]
BirthdayParty {
onPartyStarted: print("This party started rockin' at " + time);
diff --git a/examples/declarative/extending/valuesource/example.qml b/examples/declarative/extending/valuesource/example.qml
index 033d9c4..aba2796 100644
--- a/examples/declarative/extending/valuesource/example.qml
+++ b/examples/declarative/extending/valuesource/example.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ![0]
BirthdayParty {
speaker: HappyBirthday { name: "Bob Jones" }
diff --git a/examples/declarative/flowview/flickr.qml b/examples/declarative/flowview/flickr.qml
index 2742839..6c47b82 100644
--- a/examples/declarative/flowview/flickr.qml
+++ b/examples/declarative/flowview/flickr.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
radius: 5;
pen.width: 1;
diff --git a/examples/declarative/flowview/flowview.qml b/examples/declarative/flowview/flowview.qml
index 61b8794..77b3230 100644
--- a/examples/declarative/flowview/flowview.qml
+++ b/examples/declarative/flowview/flowview.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 800
height: 800
diff --git a/examples/declarative/flowview/rect.qml b/examples/declarative/flowview/rect.qml
index be2730f..9d81fa4 100644
--- a/examples/declarative/flowview/rect.qml
+++ b/examples/declarative/flowview/rect.qml
@@ -1,2 +1,4 @@
+import Qt 4.6
+
Rect { radius: 5; pen.width: 1; width:400; height: 120; color: background; }
diff --git a/examples/declarative/follow/follow.qml b/examples/declarative/follow/follow.qml
index 37a953c..b906c12 100644
--- a/examples/declarative/follow/follow.qml
+++ b/examples/declarative/follow/follow.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
color: "#ffffff"
width: 320; height: 240
diff --git a/examples/declarative/follow/pong.qml b/examples/declarative/follow/pong.qml
index c101d8d..5a2d0ad 100644
--- a/examples/declarative/follow/pong.qml
+++ b/examples/declarative/follow/pong.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Page
width: 640; height: 480
diff --git a/examples/declarative/listview/content/MediaButton.qml b/examples/declarative/listview/content/MediaButton.qml
index 6195daa..23ae466 100644
--- a/examples/declarative/listview/content/MediaButton.qml
+++ b/examples/declarative/listview/content/MediaButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
property var text
signal clicked
diff --git a/examples/declarative/listview/dummydata/MyPetsModel.qml b/examples/declarative/listview/dummydata/MyPetsModel.qml
index 4d76ff4..9a00dca 100644
--- a/examples/declarative/listview/dummydata/MyPetsModel.qml
+++ b/examples/declarative/listview/dummydata/MyPetsModel.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// ListModel allows free form list models to be defined and populated.
// Be sure to name the file the same as the id.
ListModel {
diff --git a/examples/declarative/listview/dummydata/Recipes.qml b/examples/declarative/listview/dummydata/Recipes.qml
index 52225dd..533730f 100644
--- a/examples/declarative/listview/dummydata/Recipes.qml
+++ b/examples/declarative/listview/dummydata/Recipes.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
ListModel {
id: Recipes
ListElement {
diff --git a/examples/declarative/listview/highlight.qml b/examples/declarative/listview/highlight.qml
index 11230e1..092ce66 100644
--- a/examples/declarative/listview/highlight.qml
+++ b/examples/declarative/listview/highlight.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 400; height: 300; color: "white"
diff --git a/examples/declarative/listview/listview.qml b/examples/declarative/listview/listview.qml
index a222378..82b04ed 100644
--- a/examples/declarative/listview/listview.qml
+++ b/examples/declarative/listview/listview.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 600; height: 300; color: "white"
diff --git a/examples/declarative/listview/recipes.qml b/examples/declarative/listview/recipes.qml
index 6536b06..788e067 100644
--- a/examples/declarative/listview/recipes.qml
+++ b/examples/declarative/listview/recipes.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "content"
// This example illustrates expanding a list item to show a more detailed view
Rect {
diff --git a/examples/declarative/listview/sections.qml b/examples/declarative/listview/sections.qml
index 60acd62..415f524 100644
--- a/examples/declarative/listview/sections.qml
+++ b/examples/declarative/listview/sections.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [0]
Rect {
width: 200
diff --git a/examples/declarative/loader/Browser.qml b/examples/declarative/loader/Browser.qml
index aec373b..5696f93 100644
--- a/examples/declarative/loader/Browser.qml
+++ b/examples/declarative/loader/Browser.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Root
width: parent.width
diff --git a/examples/declarative/loader/Button.qml b/examples/declarative/loader/Button.qml
index 3efedc4..7a17601 100644
--- a/examples/declarative/loader/Button.qml
+++ b/examples/declarative/loader/Button.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Container
diff --git a/examples/declarative/loader/loader.qml b/examples/declarative/loader/loader.qml
index 6e4d6ec..447d73a 100644
--- a/examples/declarative/loader/loader.qml
+++ b/examples/declarative/loader/loader.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Shell
width: 300
diff --git a/examples/declarative/minehunt/Description.qml b/examples/declarative/minehunt/Description.qml
index ea71d85..9ad6522 100644
--- a/examples/declarative/minehunt/Description.qml
+++ b/examples/declarative/minehunt/Description.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: Page
height: MyText.height + 20
diff --git a/examples/declarative/minehunt/Explosion.qml b/examples/declarative/minehunt/Explosion.qml
index 84e93d4..b1fe848 100644
--- a/examples/declarative/minehunt/Explosion.qml
+++ b/examples/declarative/minehunt/Explosion.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
property bool explode : false
diff --git a/examples/declarative/minehunt/minehunt.qml b/examples/declarative/minehunt/minehunt.qml
index 3dc1da4..6220d96 100644
--- a/examples/declarative/minehunt/minehunt.qml
+++ b/examples/declarative/minehunt/minehunt.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: field
width: 370
diff --git a/examples/declarative/modules/builtin-version.qml b/examples/declarative/modules/builtin-version.qml
index 78eb860..82055b4 100644
--- a/examples/declarative/modules/builtin-version.qml
+++ b/examples/declarative/modules/builtin-version.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import com.nokia.Qt 4.7
Rect {}
// and later... SuperRect{}
diff --git a/examples/declarative/modules/installed-qualified.qml b/examples/declarative/modules/installed-qualified.qml
index c3217cf..3d40794 100644
--- a/examples/declarative/modules/installed-qualified.qml
+++ b/examples/declarative/modules/installed-qualified.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import com.nokia.Foo as F
Item {
F.Bar { }
diff --git a/examples/declarative/modules/installed-version.qml b/examples/declarative/modules/installed-version.qml
index 4ba9a2b..8098b9b 100644
--- a/examples/declarative/modules/installed-version.qml
+++ b/examples/declarative/modules/installed-version.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import com.nokia.Foo 1.6
import com.nokia.Foo 1.7 as NewFoo
VerticalLayout {
diff --git a/examples/declarative/modules/installed.qml b/examples/declarative/modules/installed.qml
index 4ce5f76..a28fd10 100644
--- a/examples/declarative/modules/installed.qml
+++ b/examples/declarative/modules/installed.qml
@@ -1,2 +1,4 @@
+import Qt 4.6
+
import com.nokia.Foo
Foo.Bar { }
diff --git a/examples/declarative/modules/local-qualified.qml b/examples/declarative/modules/local-qualified.qml
index 36af092..8658031 100644
--- a/examples/declarative/modules/local-qualified.qml
+++ b/examples/declarative/modules/local-qualified.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "local" as X
import "local/SubLib" as Y
diff --git a/examples/declarative/modules/local.qml b/examples/declarative/modules/local.qml
index 70c90df..c90bde3 100644
--- a/examples/declarative/modules/local.qml
+++ b/examples/declarative/modules/local.qml
@@ -1,2 +1,4 @@
+import Qt 4.6
+
import "local"
Foo { }
diff --git a/examples/declarative/modules/remote-qualified.qml b/examples/declarative/modules/remote-qualified.qml
index d807af7..581c868 100644
--- a/examples/declarative/modules/remote-qualified.qml
+++ b/examples/declarative/modules/remote-qualified.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "http://qml.nokia.com/Clock.zip"
Item {
Clock.Hand { ... }
diff --git a/examples/declarative/modules/remote-zipped.qml b/examples/declarative/modules/remote-zipped.qml
index aee838f..d325b65 100644
--- a/examples/declarative/modules/remote-zipped.qml
+++ b/examples/declarative/modules/remote-zipped.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "http://qml.nokia.com/Clock.zip"
Item {
Clock { ... }
diff --git a/examples/declarative/modules/wrong-installed-version.qml b/examples/declarative/modules/wrong-installed-version.qml
index 3d2e3e5..4442b11 100644
--- a/examples/declarative/modules/wrong-installed-version.qml
+++ b/examples/declarative/modules/wrong-installed-version.qml
@@ -1,2 +1,4 @@
+import Qt 4.6
+
import com.nokia.Foo 1.5
Baz { } // Not available in 1.5, only 1.6!
diff --git a/examples/declarative/modules/wrong-installed.qml b/examples/declarative/modules/wrong-installed.qml
index b0f2355..40cd9c5 100644
--- a/examples/declarative/modules/wrong-installed.qml
+++ b/examples/declarative/modules/wrong-installed.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import com.nokia.NonExistent
Rect {}
diff --git a/examples/declarative/modules/wrong-local-qualified.qml b/examples/declarative/modules/wrong-local-qualified.qml
index 92cbbf3..868bebf 100644
--- a/examples/declarative/modules/wrong-local-qualified.qml
+++ b/examples/declarative/modules/wrong-local-qualified.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "local" as X
// WRONG: if imported qualified, must qualify
diff --git a/examples/declarative/modules/wrong-local.qml b/examples/declarative/modules/wrong-local.qml
index 6cb00c4..1958659 100644
--- a/examples/declarative/modules/wrong-local.qml
+++ b/examples/declarative/modules/wrong-local.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "local"
// WRONG - cannot use qualification to access "local sublibraries".
diff --git a/examples/declarative/modules/zipped-qualified.qml b/examples/declarative/modules/zipped-qualified.qml
index 101df14..56e329f 100644
--- a/examples/declarative/modules/zipped-qualified.qml
+++ b/examples/declarative/modules/zipped-qualified.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// Not currently supported
import "zips/ClockPack.zip" as CP
Item {
diff --git a/examples/declarative/modules/zipped.qml b/examples/declarative/modules/zipped.qml
index 9a0775c..4464616 100644
--- a/examples/declarative/modules/zipped.qml
+++ b/examples/declarative/modules/zipped.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// Not currently supported
import "zips/ClockPack.zip"
Item {
diff --git a/examples/declarative/mouseregion/mouse.qml b/examples/declarative/mouseregion/mouse.qml
index 5ef484c..0948a32 100644
--- a/examples/declarative/mouseregion/mouse.qml
+++ b/examples/declarative/mouseregion/mouse.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
color: "white"
width: 200; height: 200
diff --git a/examples/declarative/scrollbar/ScrollBar.qml b/examples/declarative/scrollbar/ScrollBar.qml
index 8020d62..93e4de6 100644
--- a/examples/declarative/scrollbar/ScrollBar.qml
+++ b/examples/declarative/scrollbar/ScrollBar.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: ScrollBar
// The properties that define the scrollbar's state.
diff --git a/examples/declarative/scrollbar/display.qml b/examples/declarative/scrollbar/display.qml
index ae28ef1..03a40d3 100644
--- a/examples/declarative/scrollbar/display.qml
+++ b/examples/declarative/scrollbar/display.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 640
height: 480
diff --git a/examples/declarative/slideswitch/Switch.qml b/examples/declarative/slideswitch/Switch.qml
index e0c2dd9..91627c7 100644
--- a/examples/declarative/slideswitch/Switch.qml
+++ b/examples/declarative/slideswitch/Switch.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: Switch
width: Groove.width; height: Groove.height
diff --git a/examples/declarative/slideswitch/display.qml b/examples/declarative/slideswitch/display.qml
index cea89b6..db67dab 100644
--- a/examples/declarative/slideswitch/display.qml
+++ b/examples/declarative/slideswitch/display.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
color: "white"
width: 150
diff --git a/examples/declarative/snow/ImageBatch.qml b/examples/declarative/snow/ImageBatch.qml
index 4c65605..77bacab 100644
--- a/examples/declarative/snow/ImageBatch.qml
+++ b/examples/declarative/snow/ImageBatch.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
GridView {
id: MyGrid
property int offset: 0
diff --git a/examples/declarative/snow/Loading.qml b/examples/declarative/snow/Loading.qml
index 0a8a51a..ff2c829 100644
--- a/examples/declarative/snow/Loading.qml
+++ b/examples/declarative/snow/Loading.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Image {
id: Loading; source: "pics/loading.png"; transformOrigin: "Center"
rotation: NumberAnimation {
diff --git a/examples/declarative/snow/snow.qml b/examples/declarative/snow/snow.qml
index f65e0ac..aaed619 100644
--- a/examples/declarative/snow/snow.qml
+++ b/examples/declarative/snow/snow.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: ImagePanel
width: 1024
diff --git a/examples/declarative/states/states.qml b/examples/declarative/states/states.qml
index c7ee172..431f0bc 100644
--- a/examples/declarative/states/states.qml
+++ b/examples/declarative/states/states.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Page
width: 300; height: 300; color: "white"
diff --git a/examples/declarative/states/transitions.qml b/examples/declarative/states/transitions.qml
index 1a719ed..7bc7f6c 100644
--- a/examples/declarative/states/transitions.qml
+++ b/examples/declarative/states/transitions.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Page
width: 300; height: 300; color: "white"
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1/Removebutton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1/Removebutton.qml
index bbe9f55..fcfb082 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1/Removebutton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1/Removebutton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [0]
Rect {
id: removeButton
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml
index cc5ebae..92ca377 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: page
width: layout.width
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2/RemoveButton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2/RemoveButton.qml
index 247e38b..dc5a486 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [0]
Rect {
id: removeButton
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2a/RemoveButton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2a/RemoveButton.qml
index 6c6a949..f60bc9b 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2a/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/2a/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [0]
Rect {
id: removeButton
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/3/RemoveButton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/3/RemoveButton.qml
index 3c20462..6426457 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/3/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/3/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [0]
Rect {
id: removeButton
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml
index 135a519..c97426c 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: removeButton
width: 30
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml
index 5ee56ce..712471f 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: removeButton
width: 30
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml
index 58662d1..acc9896 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: removeButton
width: 30
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/GroupBox.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/GroupBox.qml
index 064aaa2..42feeb1 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/GroupBox.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/GroupBox.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
FocusRealm {
id: groupBox
width: Math.max(270, subItem.width+40)
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1/ContactField.qml b/examples/declarative/tutorials/contacts/2_Reuse/1/ContactField.qml
index 0218c3d..162452f 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1/ContactField.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1/ContactField.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [load]
Item {
id: contactField
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml
index a0f3880..5392154 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: removeButton
width: 30
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1a/ContactField.qml b/examples/declarative/tutorials/contacts/2_Reuse/1a/ContactField.qml
index 62089b8..e3081b9 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1a/ContactField.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1a/ContactField.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [load]
Item {
id: contactField
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml
index a0f3880..5392154 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: removeButton
width: 30
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml b/examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml
index 92893f6..a68adc1 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [all]
Rect {
width: 100
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml
index 7baa8af..e47aff2 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: removeButton
width: 30
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/2/ContactField.qml b/examples/declarative/tutorials/contacts/2_Reuse/2/ContactField.qml
index 2542c1c..2e1a488 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/2/ContactField.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/2/ContactField.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: contactField
clip: true
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
index 472fe60..32e8ce0 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [define properties and signals]
Rect {
id: removeButton
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/2_Reuse.qml b/examples/declarative/tutorials/contacts/2_Reuse/2_Reuse.qml
index 6ad2eb5..3b0ef67 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/2_Reuse.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/2_Reuse.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: page
width: layout.width
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/3/Contact.qml b/examples/declarative/tutorials/contacts/2_Reuse/3/Contact.qml
index 763a771..4c458c8 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/3/Contact.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/3/Contact.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: contactDetails
width: 230
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml b/examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml
index cdbcd13..7957ed1 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [all]
Item {
id: contactField
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml b/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml
index 084d8fd..e0651c8 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [value change]
Rect {
id: fieldText
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml
index dc9c9b3..6280877 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [all]
Rect {
id: removeButton
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/4/Contact.qml b/examples/declarative/tutorials/contacts/2_Reuse/4/Contact.qml
index bcb242f..f70153b 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/4/Contact.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/4/Contact.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [grab property]
Item {
id: contactDetails
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml b/examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml
index 4cd74a7..d637fa6 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: contactField
clip: true
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml b/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml
index cbb2a1f..21e3bf2 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: fieldText
height: 30
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml
index 57750a0..03b50eec 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: removeButton
width: 30
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/GroupBox.qml b/examples/declarative/tutorials/contacts/2_Reuse/GroupBox.qml
index 064aaa2..42feeb1 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/GroupBox.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/GroupBox.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
FocusRealm {
id: groupBox
width: Math.max(270, subItem.width+40)
diff --git a/examples/declarative/tutorials/contacts/3_Collections/1/ContactView.qml b/examples/declarative/tutorials/contacts/3_Collections/1/ContactView.qml
index 5400544..25cb539 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/1/ContactView.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/1/ContactView.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "../lib"
Item {
id: contacts
diff --git a/examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml b/examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml
index 120c7ba..13e2ab1 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "../lib"
Item {
id: contacts
diff --git a/examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml b/examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml
index 82b55af..46e09a0 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
import "../lib"
Item {
id: contacts
diff --git a/examples/declarative/tutorials/contacts/3_Collections/3_Collections.qml b/examples/declarative/tutorials/contacts/3_Collections/3_Collections.qml
index 7d9937c..21615cb 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/3_Collections.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/3_Collections.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: page
width: layout.width
diff --git a/examples/declarative/tutorials/contacts/3_Collections/GroupBox.qml b/examples/declarative/tutorials/contacts/3_Collections/GroupBox.qml
index 064aaa2..42feeb1 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/GroupBox.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/GroupBox.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
FocusRealm {
id: groupBox
width: Math.max(270, subItem.width+40)
diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml
index 629dce8..f5024e5 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: button
width: 30
diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/Contact.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/Contact.qml
index 6832076..129ea85 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/lib/Contact.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/lib/Contact.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: contactDetails
anchors.fill: parent
diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml
index 4cd74a7..d637fa6 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
id: contactField
clip: true
diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml
index 133262a..4506ec9 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: fieldText
height: 30
diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml
index 005daaa..866a23f 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: removeButton
width: 30
diff --git a/examples/declarative/tutorials/helloworld/t1/tutorial1.qml b/examples/declarative/tutorials/helloworld/t1/tutorial1.qml
index 4e53b8e..f067695 100644
--- a/examples/declarative/tutorials/helloworld/t1/tutorial1.qml
+++ b/examples/declarative/tutorials/helloworld/t1/tutorial1.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Page
width: 480
diff --git a/examples/declarative/tutorials/helloworld/t2/Cell.qml b/examples/declarative/tutorials/helloworld/t2/Cell.qml
index 0109251..0b8ae3f 100644
--- a/examples/declarative/tutorials/helloworld/t2/Cell.qml
+++ b/examples/declarative/tutorials/helloworld/t2/Cell.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
property var color
diff --git a/examples/declarative/tutorials/helloworld/t2/tutorial2.qml b/examples/declarative/tutorials/helloworld/t2/tutorial2.qml
index 6c7e68e..fdb8f3c 100644
--- a/examples/declarative/tutorials/helloworld/t2/tutorial2.qml
+++ b/examples/declarative/tutorials/helloworld/t2/tutorial2.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Page
width: 480
diff --git a/examples/declarative/tutorials/helloworld/t3/Cell.qml b/examples/declarative/tutorials/helloworld/t3/Cell.qml
index e779406..460d569 100644
--- a/examples/declarative/tutorials/helloworld/t3/Cell.qml
+++ b/examples/declarative/tutorials/helloworld/t3/Cell.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
property var color
diff --git a/examples/declarative/tutorials/helloworld/t3/tutorial3.qml b/examples/declarative/tutorials/helloworld/t3/tutorial3.qml
index 664bf45..557f2ca 100644
--- a/examples/declarative/tutorials/helloworld/t3/tutorial3.qml
+++ b/examples/declarative/tutorials/helloworld/t3/tutorial3.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
id: Page
width: 480
diff --git a/examples/declarative/velocity/Day.qml b/examples/declarative/velocity/Day.qml
index 5154c91..05e1f07 100644
--- a/examples/declarative/velocity/Day.qml
+++ b/examples/declarative/velocity/Day.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
property string day
property var stickies
diff --git a/examples/declarative/velocity/velocity.qml b/examples/declarative/velocity/velocity.qml
index 786f364..a1fbcc1 100644
--- a/examples/declarative/velocity/velocity.qml
+++ b/examples/declarative/velocity/velocity.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
color: "lightSteelBlue"
width: 800
diff --git a/examples/declarative/webview/autosize.qml b/examples/declarative/webview/autosize.qml
index c32b752..2930657 100644
--- a/examples/declarative/webview/autosize.qml
+++ b/examples/declarative/webview/autosize.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// The WebView size is determined by the width, height,
// idealWidth, and idealHeight properties.
Rect {
diff --git a/examples/declarative/webview/content/SpinSquare.qml b/examples/declarative/webview/content/SpinSquare.qml
index 640416f..63336ef 100644
--- a/examples/declarative/webview/content/SpinSquare.qml
+++ b/examples/declarative/webview/content/SpinSquare.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Item {
properties var period : 250
properties var color : "black"
diff --git a/examples/declarative/webview/inline-html.qml b/examples/declarative/webview/inline-html.qml
index 5f6d410..23b4555 100644
--- a/examples/declarative/webview/inline-html.qml
+++ b/examples/declarative/webview/inline-html.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// Inline HTML with loose formatting can be
// set on the html property.
WebView {
diff --git a/examples/declarative/webview/qml-in-html.qml b/examples/declarative/webview/qml-in-html.qml
index 29dded5..2ae3476 100644
--- a/examples/declarative/webview/qml-in-html.qml
+++ b/examples/declarative/webview/qml-in-html.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// The WebView supports QML data through the HTML OBJECT tag
Rect {
color:"blue"
diff --git a/examples/declarative/webview/transparent.qml b/examples/declarative/webview/transparent.qml
index 8614822..c23b5f5 100644
--- a/examples/declarative/webview/transparent.qml
+++ b/examples/declarative/webview/transparent.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
// The WebView background is transparent
// if the HTML does not specify a background
Rect {
diff --git a/examples/declarative/xmldata/daringfireball.qml b/examples/declarative/xmldata/daringfireball.qml
index 6f3461e..4fb12af 100644
--- a/examples/declarative/xmldata/daringfireball.qml
+++ b/examples/declarative/xmldata/daringfireball.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
color: "white"
width: 600
diff --git a/examples/declarative/xmldata/yahoonews.qml b/examples/declarative/xmldata/yahoonews.qml
index 9d0c956..c7f0b08 100644
--- a/examples/declarative/xmldata/yahoonews.qml
+++ b/examples/declarative/xmldata/yahoonews.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
gradient: Gradient {
GradientStop { position: 0; color: "black" }