diff options
author | Andy Nichols <andy.nichols@digia.com> | 2014-08-21 18:53:09 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2014-09-01 13:54:19 +0300 |
commit | 47ad428befff796faf2f3bc7bff94f06fad9c2e1 (patch) | |
tree | 6e15dddb234bd6d6c320d3c2b4ae8969b7bccbec /softwarecontext/imagenode.cpp | |
parent | 13f28b3c7abda7faac661fdc2500562ab81aa86d (diff) |
Correct painting of RectangleNode
The previous behavior was very wrong compared to how QtQuick normally
paints Rectangle elements. The border.width property does not effect
the geometry of the Rectangle, where as QPainter::drawRect draws a
border 0.5 the border.width around the edge of the rectangle. So now
there is special logic to draw the each case correctly using fillRect as
much as possible.
Change-Id: I4ea2be2226ff3b1a11dc5000522df503c6f43227
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'softwarecontext/imagenode.cpp')
0 files changed, 0 insertions, 0 deletions