Make Rectangle border be inner instead of centered on the outline.
authorSamuel Rødal <samuel.rodal@digia.com>
Tue, 16 Oct 2012 15:55:46 +0000 (17:55 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 22 Oct 2012 16:23:12 +0000 (18:23 +0200)
commit29bfe1db8a5b4480317701ae508f0c920c925525
tree041fc8d5f27a9a765382a2f5e552cc0143e292ef
parent3aaadc5226e8914a562daa1d3d123da929d1affd
Make Rectangle border be inner instead of centered on the outline.

This avoids awkward situations such as when clipping to a parent item of
the same size and makes it easier to reason about the bounding rectangle
of the item.

Task-number: QTBUG-21341
Change-Id: If015cfbc5792429f4a407fc0547ea71eca779eda
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
src/quick/doc/images/rect-border-width.png [deleted file]
src/quick/doc/snippets/qml/rectangle/rect-border-width.qml [deleted file]
src/quick/items/qquickrectangle.cpp
src/quick/items/qquickrectangle_p.h
src/quick/items/qquickrectangle_p_p.h
src/quick/scenegraph/qsgdefaultrectanglenode.cpp