diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-11-25 09:27:25 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-11-25 18:10:12 (GMT) |
commit | aae664552f7e5fba96ab6f334ec354800ad83c06 (patch) | |
tree | 1f751ae1f2a7bab8d624c65d333fedf62f2e3079 /src/gui/graphicsview/qgraphicswidget.cpp | |
parent | dab1b98d84293e863c920add25980393fad2e9cd (diff) | |
download | Qt-aae664552f7e5fba96ab6f334ec354800ad83c06.zip Qt-aae664552f7e5fba96ab6f334ec354800ad83c06.tar.gz Qt-aae664552f7e5fba96ab6f334ec354800ad83c06.tar.bz2 |
Remove caching of QGraphicsItem::clipPath().
The cache was added in 4.5 and was useful at that time. With 4.6
it is not relevant anymore since the only use case for it is item-lookup
releated to mouse events and collision detection, so the overhead of
maintaining the cache is more pain than gain.
All existing auto tests pass.
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicswidget.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp index d9c65bb..f6c06d5 100644 --- a/src/gui/graphicsview/qgraphicswidget.cpp +++ b/src/gui/graphicsview/qgraphicswidget.cpp @@ -385,8 +385,6 @@ void QGraphicsWidget::setGeometry(const QRectF &rect) QSizeF oldSize = size(); QGraphicsLayoutItem::setGeometry(newGeom); - wd->invalidateCachedClipPathRecursively(); - // Send resize event bool resized = newGeom.size() != oldSize; if (resized) { |