summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/qmlforcpp.qdoc
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/declarative/qmlforcpp.qdoc
parent51555ed45f6397fa7cdfae771ee6275733bce615 (diff)
downloadQt-21e87b18698c50bcfe0800509563e71c79aae0bb.zip
Qt-21e87b18698c50bcfe0800509563e71c79aae0bb.tar.gz
Qt-21e87b18698c50bcfe0800509563e71c79aae0bb.tar.bz2
Renaming Rect -> Rectangle
Diffstat (limited to 'doc/src/declarative/qmlforcpp.qdoc')
-rw-r--r--doc/src/declarative/qmlforcpp.qdoc24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/src/declarative/qmlforcpp.qdoc b/doc/src/declarative/qmlforcpp.qdoc
index 53af252..5838df7 100644
--- a/doc/src/declarative/qmlforcpp.qdoc
+++ b/doc/src/declarative/qmlforcpp.qdoc
@@ -29,7 +29,7 @@
\code
QmlEngine engine;
- QmlComponent redRectangle(&engine, "Rect { color: \"red\"; width: 100; height: 100 }");
+ QmlComponent redRectangle(&engine, "Rectangle { color: \"red\"; width: 100; height: 100 }");
for (int ii = 0; ii < 100; ++ii) {
QObject *rectangle = redRectangle.create();
// ... do something with the rectangle ...
@@ -127,7 +127,7 @@
added to the parent's \c children property.
\code
- Rect {
+ Rectangle {
Image {}
Text {}
}
@@ -208,14 +208,14 @@
rectangles height would be updated automatically.
\code
- Rect {
+ Rectangle {
color: "red"
width: 100
- Rect {
+ Rectangle {
color: "blue"
width: 50
height: parent.height
- Rect {
+ Rectangle {
color: "green"
width: 25
height: parent.height
@@ -283,14 +283,14 @@
example rewritten to do just that.
\code
- Rect {
+ Rectangle {
color: "red"
width: 100
- Rect {
+ Rectangle {
color: "blue"
width: 50
height: parent.height
- Rect {
+ Rectangle {
color: "green"
width: 25
height: parent.parent.height
@@ -313,15 +313,15 @@
a component. By convention, id's should start with an uppercase letter.
\code
- Rect {
+ Rectangle {
id: Root
color: "red"
width: GreenRect.width + 75
height: Root.height
- Rect {
+ Rectangle {
color: "blue"
width: GreenRect.width + 25
- Rect {
+ Rectangle {
id: GreenRect
color: "green"
width: 25
@@ -554,7 +554,7 @@
Consider the following example.
\code
- Rect {
+ Rectangle {
x: NumberAnimation { running: true; repeat; true; from: 0; to: 100; }
}
\endcode