Fixed broken scrolling of cached graphics items on X11.
authorSamuel Rødal <sroedal@trolltech.com>
Fri, 18 Sep 2009 12:48:00 +0000 (14:48 +0200)
committerSamuel Rødal <sroedal@trolltech.com>
Fri, 18 Sep 2009 13:02:25 +0000 (15:02 +0200)
commit169099b5e9c77c6633deb3c7bb949800a5f80ec2
treeef6cdfe6cc003e08e0b62c66f30b8203054c2bcf
parent99005e254b6055e63fc432efd38b9a5a2d0ffcc9
Fixed broken scrolling of cached graphics items on X11.

The scrolling was broken in other graphics systems than the native,
since _q_scrollPixmap assumed that all QPixmaps were using the X11
backend. We can just use QPixmap::scroll instead, which should also make
it faster with the raster paint engine than creating a temporary painter
and doing a blit. Also, _q_scrollPixmap would do blending instead of
blitting for non-opaque pixmaps.

Reviewed-by: Olivier Goffart
src/gui/graphicsview/qgraphicsitem.cpp