diff options
author | David Boddie <david.boddie@nokia.com> | 2010-11-19 19:12:04 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-11-19 19:12:04 (GMT) |
commit | 9743d1ae8dcec6b64bf497e76bd49a029c8f3ecc (patch) | |
tree | 15c8142673484390e99a6035610f96f5df0be80b /src/declarative/graphicsitems | |
parent | a34730e837bc1430011028dba11bbf5a4672789d (diff) | |
download | Qt-9743d1ae8dcec6b64bf497e76bd49a029c8f3ecc.zip Qt-9743d1ae8dcec6b64bf497e76bd49a029c8f3ecc.tar.gz Qt-9743d1ae8dcec6b64bf497e76bd49a029c8f3ecc.tar.bz2 |
Doc: Documented that border width does not affect rectangle geometry.
Task-number: QTBUG-15458
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativerectangle.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativerectangle.cpp b/src/declarative/graphicsitems/qdeclarativerectangle.cpp index fc3954f..7686dde 100644 --- a/src/declarative/graphicsitems/qdeclarativerectangle.cpp +++ b/src/declarative/graphicsitems/qdeclarativerectangle.cpp @@ -260,6 +260,9 @@ void QDeclarativeRectangle::doUpdate() A width of 1 creates a thin line. For no line, use a width of 0 or a transparent color. + \note The width of the rectangle's border does not affect the geometry of the + rectangle itself or its position relative to other items if anchors are used. + If \c border.width is an odd number, the rectangle is painted at a half-pixel offset to retain border smoothness. Also, the border is rendered evenly on either side of the rectangle's boundaries, and the spare pixel is rendered to the right and below the |