diff options
author | Bea Lam <bea.lam@nokia.com> | 2012-08-28 11:21:19 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-28 06:21:58 +0200 |
commit | 87679b3499e68957998b98bf13b6d98b3aa8b4c3 (patch) | |
tree | 4e6d613173a1e6abf5ef0afc65a615fd6b7fdbfe /src/quick/doc/src/concepts/positioning/topic.qdoc | |
parent | abaee0a83588f86740ea553ff7623a789b6b787a (diff) |
Docs - add missing images and code, clean up sections
Includes the removal of concepts/modelviewsdata/localstorage.qdoc
since that is a duplicate of the existing Local Storage module docs.
Also removes classes from whatsnew.qdoc that are internal.
Change-Id: I4170c1797bbec09bb67784b0b2ad67fd990365a8
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'src/quick/doc/src/concepts/positioning/topic.qdoc')
-rw-r--r-- | src/quick/doc/src/concepts/positioning/topic.qdoc | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/quick/doc/src/concepts/positioning/topic.qdoc b/src/quick/doc/src/concepts/positioning/topic.qdoc index 6c44e66f31..17c7e15494 100644 --- a/src/quick/doc/src/concepts/positioning/topic.qdoc +++ b/src/quick/doc/src/concepts/positioning/topic.qdoc @@ -54,9 +54,9 @@ In Qt Quick, every visual object is positioned within the \l{qtquick-visual-coordinates.html}{coordinate system} provided by the Qt Quick visual canvas. As described in that document, the x and y coordinates of a visual object are relative to those of its visual -parent, with the top-left corner have the value [0, 0]. +parent, with the top-left corner having the coordinate (0, 0). -Thus, the following example will display three rectangles positioned manually: +Thus, the following example will display two rectangles positioned manually: \table \header @@ -68,28 +68,25 @@ Thus, the following example will display three rectangles positioned manually: \qml import QtQuick 2.0 - Rectangle { - id: r1 - x: 0 - y: 0 + Item { width: 200 height: 200 Rectangle { - id: r2 - x: 0 - y: 100 + x: 50 + y: 50 width: 100 height: 100 - } + color: "green" + } - Rectangle { - id: r3 + Rectangle { x: 100 y: 100 width: 50 - height: 100 - } + height: 50 + color: "yellow" + } } \endqml \li |