summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2010-06-01 07:39:57 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2010-06-01 07:39:57 (GMT)
commit2e1e1cff3696c93f983db78c99e564a791d5d0ef (patch)
tree5def48a08a0d4178678479e0cf47534d4ab2fd63 /mkspecs
parent6750d0dcbf5a2e88fab2e127dc3e057f0d68bf71 (diff)
downloadQt-2e1e1cff3696c93f983db78c99e564a791d5d0ef.zip
Qt-2e1e1cff3696c93f983db78c99e564a791d5d0ef.tar.gz
Qt-2e1e1cff3696c93f983db78c99e564a791d5d0ef.tar.bz2
Avoid unnecessary detach / deep copy in QGraphicsItem::scroll().
QGraphicsItem::scroll() scrolls the cache pixmap when cacheMode is enabled (for ItemCoordinateCache only). Because the pixmap exists both in the cache and in a temp QPixmap copy, the ref count is 2, so the scroll operation has to do a deep copy. To avoid this, we remove the pixmap from the cache before and reinsert it again after calling QPixmap::scroll(). Reviewed-by: Alexis Menard <alexis.menard@nokia.com>
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions