summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
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 /doc/src/snippets
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 'doc/src/snippets')
-rw-r--r--doc/src/snippets/declarative/GroupBox.qml2
-rw-r--r--doc/src/snippets/declarative/comments.qml2
-rw-r--r--doc/src/snippets/declarative/content.qml2
-rw-r--r--doc/src/snippets/declarative/drag.qml2
-rw-r--r--doc/src/snippets/declarative/gradient.qml2
-rw-r--r--doc/src/snippets/declarative/gridview/dummydata/ContactModel.qml2
-rw-r--r--doc/src/snippets/declarative/gridview/gridview.qml2
-rw-r--r--doc/src/snippets/declarative/listview/dummydata/ContactModel.qml2
-rw-r--r--doc/src/snippets/declarative/listview/highlight.qml2
-rw-r--r--doc/src/snippets/declarative/listview/listview.qml2
-rw-r--r--doc/src/snippets/declarative/mouseregion.qml2
-rw-r--r--doc/src/snippets/declarative/pathview/dummydata/MenuModel.qml2
-rw-r--r--doc/src/snippets/declarative/pathview/pathattributes.qml2
-rw-r--r--doc/src/snippets/declarative/pathview/pathview.qml2
-rw-r--r--doc/src/snippets/declarative/repeater.qml2
-rw-r--r--doc/src/snippets/declarative/rotation.qml2
16 files changed, 32 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/GroupBox.qml b/doc/src/snippets/declarative/GroupBox.qml
index fd8d60b..efbe4e5 100644
--- a/doc/src/snippets/declarative/GroupBox.qml
+++ b/doc/src/snippets/declarative/GroupBox.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
ContentWrapper {
id: Container; width: parent.width; height: contents.height
children: [
diff --git a/doc/src/snippets/declarative/comments.qml b/doc/src/snippets/declarative/comments.qml
index 22e0d18..4f8a442 100644
--- a/doc/src/snippets/declarative/comments.qml
+++ b/doc/src/snippets/declarative/comments.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Text {
text: "Hello world!" //a basic greeting
/*
diff --git a/doc/src/snippets/declarative/content.qml b/doc/src/snippets/declarative/content.qml
index 6f9e0d8..1e01b29 100644
--- a/doc/src/snippets/declarative/content.qml
+++ b/doc/src/snippets/declarative/content.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 200; height: 100; color: "lightgray"
GroupBox {
diff --git a/doc/src/snippets/declarative/drag.qml b/doc/src/snippets/declarative/drag.qml
index 3a573ad..2191b6f 100644
--- a/doc/src/snippets/declarative/drag.qml
+++ b/doc/src/snippets/declarative/drag.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [0]
Rect {
id: blurtest; width: 600; height: 200; color: "white"
diff --git a/doc/src/snippets/declarative/gradient.qml b/doc/src/snippets/declarative/gradient.qml
index 28018b8..19923ac 100644
--- a/doc/src/snippets/declarative/gradient.qml
+++ b/doc/src/snippets/declarative/gradient.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 100; height: 100
gradient: Gradient {
diff --git a/doc/src/snippets/declarative/gridview/dummydata/ContactModel.qml b/doc/src/snippets/declarative/gridview/dummydata/ContactModel.qml
index accbc3e..6868385 100644
--- a/doc/src/snippets/declarative/gridview/dummydata/ContactModel.qml
+++ b/doc/src/snippets/declarative/gridview/dummydata/ContactModel.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
ListModel {
id: ContactModel
ListElement {
diff --git a/doc/src/snippets/declarative/gridview/gridview.qml b/doc/src/snippets/declarative/gridview/gridview.qml
index 0fca789..208118d 100644
--- a/doc/src/snippets/declarative/gridview/gridview.qml
+++ b/doc/src/snippets/declarative/gridview/gridview.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [3]
Rect {
width: 240; height: 180; color: "white"
diff --git a/doc/src/snippets/declarative/listview/dummydata/ContactModel.qml b/doc/src/snippets/declarative/listview/dummydata/ContactModel.qml
index 53c745e..31e02ea 100644
--- a/doc/src/snippets/declarative/listview/dummydata/ContactModel.qml
+++ b/doc/src/snippets/declarative/listview/dummydata/ContactModel.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
ListModel {
id: ContactModel
ListElement {
diff --git a/doc/src/snippets/declarative/listview/highlight.qml b/doc/src/snippets/declarative/listview/highlight.qml
index e3c948e..3d13170 100644
--- a/doc/src/snippets/declarative/listview/highlight.qml
+++ b/doc/src/snippets/declarative/listview/highlight.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 180; height: 200; color: "white"
diff --git a/doc/src/snippets/declarative/listview/listview.qml b/doc/src/snippets/declarative/listview/listview.qml
index 21a5fce..50677ba 100644
--- a/doc/src/snippets/declarative/listview/listview.qml
+++ b/doc/src/snippets/declarative/listview/listview.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [3]
Rect {
width: 180; height: 200; color: "white"
diff --git a/doc/src/snippets/declarative/mouseregion.qml b/doc/src/snippets/declarative/mouseregion.qml
index 5c1afe6..d3e22cd 100644
--- a/doc/src/snippets/declarative/mouseregion.qml
+++ b/doc/src/snippets/declarative/mouseregion.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect { width: 200; height: 100
HorizontalLayout {
//! [0]
diff --git a/doc/src/snippets/declarative/pathview/dummydata/MenuModel.qml b/doc/src/snippets/declarative/pathview/dummydata/MenuModel.qml
index 44cdaf0..20b3b7d 100644
--- a/doc/src/snippets/declarative/pathview/dummydata/MenuModel.qml
+++ b/doc/src/snippets/declarative/pathview/dummydata/MenuModel.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
ListModel {
id: MenuModel
ListElement {
diff --git a/doc/src/snippets/declarative/pathview/pathattributes.qml b/doc/src/snippets/declarative/pathview/pathattributes.qml
index 44789f2..39c7122 100644
--- a/doc/src/snippets/declarative/pathview/pathattributes.qml
+++ b/doc/src/snippets/declarative/pathview/pathattributes.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 240; height: 200; color: 'white'
//! [0]
diff --git a/doc/src/snippets/declarative/pathview/pathview.qml b/doc/src/snippets/declarative/pathview/pathview.qml
index 11df0a2..70f498c 100644
--- a/doc/src/snippets/declarative/pathview/pathview.qml
+++ b/doc/src/snippets/declarative/pathview/pathview.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 240; height: 200; color: 'white'
//! [0]
diff --git a/doc/src/snippets/declarative/repeater.qml b/doc/src/snippets/declarative/repeater.qml
index c8f9f18..a58972f 100644
--- a/doc/src/snippets/declarative/repeater.qml
+++ b/doc/src/snippets/declarative/repeater.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
//! [0]
Rect { width: 220; height: 20; color: "white"
Component { id: Dot
diff --git a/doc/src/snippets/declarative/rotation.qml b/doc/src/snippets/declarative/rotation.qml
index 01838dd..c7e184f 100644
--- a/doc/src/snippets/declarative/rotation.qml
+++ b/doc/src/snippets/declarative/rotation.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect {
width: 360; height: 80
color: "white"