summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-08-19 06:34:44 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-08-19 08:15:20 (GMT)
commit21e87b18698c50bcfe0800509563e71c79aae0bb (patch)
tree4567cb8a5bd3127fe98d7ce5a5042550bca48b7b /doc/src/snippets/declarative
parent51555ed45f6397fa7cdfae771ee6275733bce615 (diff)
downloadQt-21e87b18698c50bcfe0800509563e71c79aae0bb.zip
Qt-21e87b18698c50bcfe0800509563e71c79aae0bb.tar.gz
Qt-21e87b18698c50bcfe0800509563e71c79aae0bb.tar.bz2
Renaming Rect -> Rectangle
Diffstat (limited to 'doc/src/snippets/declarative')
-rw-r--r--doc/src/snippets/declarative/GroupBox.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/gridview.qml4
-rw-r--r--doc/src/snippets/declarative/listview/highlight.qml4
-rw-r--r--doc/src/snippets/declarative/listview/listview.qml4
-rw-r--r--doc/src/snippets/declarative/mouseregion.qml6
-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.qml8
-rw-r--r--doc/src/snippets/declarative/rotation.qml2
12 files changed, 20 insertions, 20 deletions
diff --git a/doc/src/snippets/declarative/GroupBox.qml b/doc/src/snippets/declarative/GroupBox.qml
index efbe4e5..13e7eb6 100644
--- a/doc/src/snippets/declarative/GroupBox.qml
+++ b/doc/src/snippets/declarative/GroupBox.qml
@@ -3,7 +3,7 @@ import Qt 4.6
ContentWrapper {
id: Container; width: parent.width; height: contents.height
children: [
- Rect {
+ Rectangle {
width: parent.width; height: contents.height
color: "white"; pen.width: 2; pen.color: "#adaeb0"; radius: 10
VerticalLayout {
diff --git a/doc/src/snippets/declarative/content.qml b/doc/src/snippets/declarative/content.qml
index 1e01b29..fb03ced 100644
--- a/doc/src/snippets/declarative/content.qml
+++ b/doc/src/snippets/declarative/content.qml
@@ -1,6 +1,6 @@
import Qt 4.6
-Rect {
+Rectangle {
width: 200; height: 100; color: "lightgray"
GroupBox {
Text { text: "First Item" }
diff --git a/doc/src/snippets/declarative/drag.qml b/doc/src/snippets/declarative/drag.qml
index 8b1765b..8735d0c 100644
--- a/doc/src/snippets/declarative/drag.qml
+++ b/doc/src/snippets/declarative/drag.qml
@@ -1,7 +1,7 @@
import Qt 4.6
//! [0]
-Rect {
+Rectangle {
id: blurtest; width: 600; height: 200; color: "white"
Image {
id: pic; source: "qtlogo-64.png"; anchors.verticalCenter: parent.verticalCenter
diff --git a/doc/src/snippets/declarative/gradient.qml b/doc/src/snippets/declarative/gradient.qml
index 19923ac..281360e 100644
--- a/doc/src/snippets/declarative/gradient.qml
+++ b/doc/src/snippets/declarative/gradient.qml
@@ -1,6 +1,6 @@
import Qt 4.6
-Rect {
+Rectangle {
width: 100; height: 100
gradient: Gradient {
GradientStop { position: 0.0; color: "red" }
diff --git a/doc/src/snippets/declarative/gridview/gridview.qml b/doc/src/snippets/declarative/gridview/gridview.qml
index 208118d..d0f0623 100644
--- a/doc/src/snippets/declarative/gridview/gridview.qml
+++ b/doc/src/snippets/declarative/gridview/gridview.qml
@@ -1,7 +1,7 @@
import Qt 4.6
//! [3]
-Rect {
+Rectangle {
width: 240; height: 180; color: "white"
// ContactModel model is defined in dummydata/ContactModel.qml
// The viewer automatically loads files in dummydata/* to assist
@@ -27,7 +27,7 @@ Rect {
//! [1]
Component {
id: Highlight
- Rect {
+ Rectangle {
color: "lightsteelblue"
radius: 5
}
diff --git a/doc/src/snippets/declarative/listview/highlight.qml b/doc/src/snippets/declarative/listview/highlight.qml
index 3d13170..29f41bf 100644
--- a/doc/src/snippets/declarative/listview/highlight.qml
+++ b/doc/src/snippets/declarative/listview/highlight.qml
@@ -1,6 +1,6 @@
import Qt 4.6
-Rect {
+Rectangle {
width: 180; height: 200; color: "white"
// ContactModel model is defined in dummydata/ContactModel.qml
@@ -29,7 +29,7 @@ Rect {
//! [1]
Component {
id: Highlight
- Rect {
+ Rectangle {
width: 180; height: 40
color: "lightsteelblue"; radius: 5
y: Follow {
diff --git a/doc/src/snippets/declarative/listview/listview.qml b/doc/src/snippets/declarative/listview/listview.qml
index 50677ba..c907077 100644
--- a/doc/src/snippets/declarative/listview/listview.qml
+++ b/doc/src/snippets/declarative/listview/listview.qml
@@ -1,7 +1,7 @@
import Qt 4.6
//! [3]
-Rect {
+Rectangle {
width: 180; height: 200; color: "white"
// ContactModel model is defined in dummydata/ContactModel.qml
@@ -29,7 +29,7 @@ Rect {
//! [1]
Component {
id: Highlight
- Rect {
+ Rectangle {
color: "lightsteelblue"
radius: 5
}
diff --git a/doc/src/snippets/declarative/mouseregion.qml b/doc/src/snippets/declarative/mouseregion.qml
index d3e22cd..6d8f179 100644
--- a/doc/src/snippets/declarative/mouseregion.qml
+++ b/doc/src/snippets/declarative/mouseregion.qml
@@ -1,14 +1,14 @@
import Qt 4.6
-Rect { width: 200; height: 100
+Rectangle { width: 200; height: 100
HorizontalLayout {
//! [0]
-Rect { width: 100; height: 100; color: "green"
+Rectangle { width: 100; height: 100; color: "green"
MouseRegion { anchors.fill: parent; onClicked: { parent.color = 'red' } }
}
//! [0]
//! [1]
-Rect {
+Rectangle {
width: 100; height: 100; color: "green"
MouseRegion {
anchors.fill: parent
diff --git a/doc/src/snippets/declarative/pathview/pathattributes.qml b/doc/src/snippets/declarative/pathview/pathattributes.qml
index 39c7122..3c2b204 100644
--- a/doc/src/snippets/declarative/pathview/pathattributes.qml
+++ b/doc/src/snippets/declarative/pathview/pathattributes.qml
@@ -1,6 +1,6 @@
import Qt 4.6
-Rect {
+Rectangle {
width: 240; height: 200; color: 'white'
//! [0]
//! [1]
diff --git a/doc/src/snippets/declarative/pathview/pathview.qml b/doc/src/snippets/declarative/pathview/pathview.qml
index 70f498c..f5db242 100644
--- a/doc/src/snippets/declarative/pathview/pathview.qml
+++ b/doc/src/snippets/declarative/pathview/pathview.qml
@@ -1,6 +1,6 @@
import Qt 4.6
-Rect {
+Rectangle {
width: 240; height: 200; color: 'white'
//! [0]
//! [1]
diff --git a/doc/src/snippets/declarative/repeater.qml b/doc/src/snippets/declarative/repeater.qml
index a58972f..309fead 100644
--- a/doc/src/snippets/declarative/repeater.qml
+++ b/doc/src/snippets/declarative/repeater.qml
@@ -1,14 +1,14 @@
import Qt 4.6
//! [0]
-Rect { width: 220; height: 20; color: "white"
+Rectangle { width: 220; height: 20; color: "white"
Component { id: Dot
- Rect { width: 20; height: 20; radius: 10; color: "green" }
+ Rectangle { width: 20; height: 20; radius: 10; color: "green" }
}
HorizontalLayout {
- Rect { width: 10; height: 20; color: "red" }
+ Rectangle { width: 10; height: 20; color: "red" }
Repeater { component: Dot; dataSource: 10 }
- Rect { width: 10; height: 20; color: "blue" }
+ Rectangle { width: 10; height: 20; color: "blue" }
}
}
//! [0]
diff --git a/doc/src/snippets/declarative/rotation.qml b/doc/src/snippets/declarative/rotation.qml
index ab7d4ca..aaaebee 100644
--- a/doc/src/snippets/declarative/rotation.qml
+++ b/doc/src/snippets/declarative/rotation.qml
@@ -1,6 +1,6 @@
import Qt 4.6
-Rect {
+Rectangle {
width: 360; height: 80
color: "white"
//! [0]