summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-12-09 04:23:42 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-12-09 23:56:21 (GMT)
commitb8da3a08945091d077d3096efae23d613b24210b (patch)
tree24e0693aef271387ee64fd686d797b8aae2c2ee1 /src/declarative
parentbb07641213dfc4c949707500c3d665fae5f4b9f0 (diff)
downloadQt-b8da3a08945091d077d3096efae23d613b24210b.zip
Qt-b8da3a08945091d077d3096efae23d613b24210b.tar.gz
Qt-b8da3a08945091d077d3096efae23d613b24210b.tar.bz2
Improvements to anchoring docs
Make it clear that anchor margins only apply to anchors. Also document that anchor and absolute positioning cannot be mixed.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem.cpp b/src/declarative/graphicsitems/qdeclarativeitem.cpp
index 932e68f..75e4a0b 100644
--- a/src/declarative/graphicsitems/qdeclarativeitem.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeitem.cpp
@@ -2112,6 +2112,8 @@ QDeclarativeAnchorLine QDeclarativeItemPrivate::baseline() const
Margins apply to top, bottom, left, right, and fill anchors.
The \c anchors.margins property can be used to set all of the various margins at once, to the same value.
+ Note that margins are anchor-specific and are not applied if an item does not
+ use anchors.
Offsets apply for horizontal center, vertical center, and baseline anchors.