diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-04-23 15:46:54 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-04-23 15:49:36 (GMT) |
commit | 5423ba187c62ea861ccfcc013fb15fcc4a5ae28d (patch) | |
tree | 81135e3cf5ec81aff1c533c1a1157ae519d2d352 /src/gui/embedded/qmousepc_qws.cpp | |
parent | 4ec0d20bda2d7c4dfd1da41d52404481f5ecd42c (diff) | |
download | Qt-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 'src/gui/embedded/qmousepc_qws.cpp')
0 files changed, 0 insertions, 0 deletions