diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2010-06-01 08:50:30 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2010-06-01 08:53:16 (GMT) |
commit | 1b6d41deebdd8103e2d8abb53bd2bb1dd26bd0ae (patch) | |
tree | 828294f13c8f9dbd04a6d3f6b1adea007c7adb7c /src/opengl | |
parent | 7b581310ceb106664077052abeabbde217ea30dd (diff) | |
download | Qt-1b6d41deebdd8103e2d8abb53bd2bb1dd26bd0ae.zip Qt-1b6d41deebdd8103e2d8abb53bd2bb1dd26bd0ae.tar.gz Qt-1b6d41deebdd8103e2d8abb53bd2bb1dd26bd0ae.tar.bz2 |
Fix bug in QGraphicsItem::scroll() when called with no QRectF argument.
With a null rect argument, QGraphicsItem::scroll() is supposed to scroll
the whole item. When using ItemCoordinateCache, currently the only
supported mode for scroll optimization, we simple scrolled the whole
cache pixmap. Problem: The cache pixmap has a border of 2 pixels. So we
scroll the contents _and_ the border. This leaves white/transparent
horizontal and vertical line artifacts when scrolling.
This change unifies the two cases - partial and full scrolling - into
one (shorter) approach that works without scrolling the margin as well.
Reviewed-by: Alexis Menard <alexis.menard@nokia.com>
Diffstat (limited to 'src/opengl')
0 files changed, 0 insertions, 0 deletions