summaryrefslogtreecommitdiffstats
path: root/demos/qtdemo
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-23 15:46:54 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-23 15:49:36 (GMT)
commit5423ba187c62ea861ccfcc013fb15fcc4a5ae28d (patch)
tree81135e3cf5ec81aff1c533c1a1157ae519d2d352 /demos/qtdemo
parent4ec0d20bda2d7c4dfd1da41d52404481f5ecd42c (diff)
downloadQt-5423ba187c62ea861ccfcc013fb15fcc4a5ae28d.zip
Qt-5423ba187c62ea861ccfcc013fb15fcc4a5ae28d.tar.gz
Qt-5423ba187c62ea861ccfcc013fb15fcc4a5ae28d.tar.bz2
Fix bugs in QGraphicsItem::childrenBoundingRect()
While working on layering in Graphics View I stumbled over this bug. The QGraphicsItem::childrenBoundingRect() function had an accumulating error caused by recursive adding of rectangles that individually were mapped to the local parent using QGraphicsItem::mapRectToParent() / QTransform::mapRect. This caused the brect to be way too large for items with children that are rotated (fex, alternating 45 and -45 degrees). The new version should be just as fast, but with no loss of precision. Reviewed-by: bnilsen
Diffstat (limited to 'demos/qtdemo')
0 files changed, 0 insertions, 0 deletions