diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-09 22:51:28 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-09 22:51:28 (GMT) |
commit | ae1c70f4cf4f217d3cf0ad2f598cafc122a562ae (patch) | |
tree | b7e2d7ecce8e03ef9a7f94c610f8630019d8ffa2 /src/declarative/graphicsitems | |
parent | 597de6154a169a8405b0cde2fee56f20329105f4 (diff) | |
download | Qt-ae1c70f4cf4f217d3cf0ad2f598cafc122a562ae.zip Qt-ae1c70f4cf4f217d3cf0ad2f598cafc122a562ae.tar.gz Qt-ae1c70f4cf4f217d3cf0ad2f598cafc122a562ae.tar.bz2 |
Prepare for QTBUG-5290 being fixed.
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicspainteditem.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp b/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp index a0d9b09..2f0a585 100644 --- a/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp +++ b/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp @@ -209,13 +209,7 @@ void QmlGraphicsPaintedItem::paint(QPainter *p, const QStyleOptionGraphicsItem * ++inpaint; - QRectF clipf = p->clipRegion().boundingRect(); - if (clipf.isEmpty()) - clipf = mapToScene(content).boundingRect(); // ### Inefficient: Maps toScene and then fromScene - else - clipf = mapToScene(clipf).boundingRect(); - - const QRect clip = mapFromScene(clipf).boundingRect().toRect(); + const QRect clip = p->clipRegion().boundingRect(); QRegion topaint(clip); topaint &= content; |