diff options
author | Geir Vattekar <geir.vattekar@nokia.com> | 2011-08-24 12:50:12 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@nokia.com> | 2011-08-24 12:50:12 (GMT) |
commit | 0847f34c977635d7d39f6947ad910d2abb0bd0ce (patch) | |
tree | ef5c4c679b77a448d72223731124edaeea6de29a | |
parent | 656d914c4d777d47ac7dfbb76e0fc8a145e6e25c (diff) | |
download | Qt-0847f34c977635d7d39f6947ad910d2abb0bd0ce.zip Qt-0847f34c977635d7d39f6947ad910d2abb0bd0ce.tar.gz Qt-0847f34c977635d7d39f6947ad910d2abb0bd0ce.tar.bz2 |
Doc: Small addition to the QML anchor layout docs
Task-number: QTBUG-15514
Reviewed-by: David Boddie
-rw-r--r-- | doc/src/declarative/anchor-layout.qdoc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/src/declarative/anchor-layout.qdoc b/doc/src/declarative/anchor-layout.qdoc index 41b04e8..e93e539 100644 --- a/doc/src/declarative/anchor-layout.qdoc +++ b/doc/src/declarative/anchor-layout.qdoc @@ -53,7 +53,12 @@ Rectangle { id: rect1; ... } Rectangle { id: rect2; anchors.left: rect1.right; ... } \endcode -In this case, the left edge of \e rect2 is bound to the right edge of \e rect1, producing the following: +Each Item has two properties for each anchor line: one to bind from and one to bind to. The properties to bind +from are contained in the \l{Item::}{anchors} attached property (seen as \c {anchors.left} above). +The properties to bind to are normal properties (seen as \c {rect1.right} above). +This way, each item can have several bindings to the same anchor line. Note that the properties to bind to are +not visible in the documentation for Item. +So in the example above, the left edge of \e rect2 is bound to the right edge of \e rect1, producing the following: \image edge1.png |