summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-08-28 13:18:35 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-08-31 10:26:19 (GMT)
commitf8f5cef2069c105d0d11a795105afd3f4519acf1 (patch)
treecf6587fbe38cfa4049f9fab04308baa975f43ba8 /src/gui/graphicsview
parent8d95b39b19a1a0ba0b86772683bdb79acbcd3e62 (diff)
downloadQt-f8f5cef2069c105d0d11a795105afd3f4519acf1.zip
Qt-f8f5cef2069c105d0d11a795105afd3f4519acf1.tar.gz
Qt-f8f5cef2069c105d0d11a795105afd3f4519acf1.tar.bz2
Fixed performance issue with graphics effects on graphics items.
Prevent a deep copy of the pixmap by ending the painter before returning the pixmap. Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index 89b89a8..86c589d 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -10349,6 +10349,8 @@ QPixmap QGraphicsItemEffectSourcePrivate::pixmap(Qt::CoordinateSystem system, QP
info->widget, info->opacity, &newEffectTransform, info->wasDirtySceneTransform,
info->drawItem);
}
+
+ pixmapPainter.end();
return pixmap;
}