diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-09-16 14:37:24 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-09-16 16:25:57 (GMT) |
commit | 9601abf3b03cfef589c092182bec3672fab6cde0 (patch) | |
tree | b337bcaa8d2fbcab7dc2103ad18ac7fed89e299b /tests/auto/qtreeview | |
parent | e76564e8a3b305f4fe69135bebb409e357f29f57 (diff) | |
download | Qt-9601abf3b03cfef589c092182bec3672fab6cde0.zip Qt-9601abf3b03cfef589c092182bec3672fab6cde0.tar.gz Qt-9601abf3b03cfef589c092182bec3672fab6cde0.tar.bz2 |
QGraphicsItem::childrenBoundingRect behavior breaks QGraphicsEffect::sourceBoundingRect().
Context:
QGraphicsEffect::sourceBoundingRect() returns:
item->boundingRect() | item->childrenBoundingRect();
Problem was that item->childrenBoundingRect() adjusted the children's
bounding rect with the children's ancestor effects (child -> root item),
which means the source bounding rect was bigger than needed. We should
only account for effects downwards in the hierarchy.
root (has effect)
|
item (has effect)
|
child
|
grandChild
Auto test included.
Task-number: QT-3633, QT-3828
Reviewed-by: samuel
Diffstat (limited to 'tests/auto/qtreeview')
0 files changed, 0 insertions, 0 deletions