diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-07-21 06:50:00 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2009-07-22 05:35:52 (GMT) |
commit | aa46924b3165e87ae195964fd18396829673bca7 (patch) | |
tree | 0abe6b11c73d0b759c3849f4ad4300abb486b1bf /src/declarative/fx/qfxpainteditem.cpp | |
parent | 60aeb88aebb18dc326667f45d734fea38743bf02 (diff) | |
download | Qt-aa46924b3165e87ae195964fd18396829673bca7.zip Qt-aa46924b3165e87ae195964fd18396829673bca7.tar.gz Qt-aa46924b3165e87ae195964fd18396829673bca7.tar.bz2 |
First round of cleanups for QFxItem
Removed some methods that are already implemented
in QGraphicsItem/Object.
Diffstat (limited to 'src/declarative/fx/qfxpainteditem.cpp')
-rw-r--r-- | src/declarative/fx/qfxpainteditem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxpainteditem.cpp b/src/declarative/fx/qfxpainteditem.cpp index 7ff3361..a4055eb 100644 --- a/src/declarative/fx/qfxpainteditem.cpp +++ b/src/declarative/fx/qfxpainteditem.cpp @@ -224,11 +224,11 @@ void QFxPaintedItem::paintContents(QPainter &p) p.setRenderHints(QPainter::SmoothPixmapTransform, true); QRectF clipf = p.clipRegion().boundingRect(); if (clipf.isEmpty()) - clipf = mapToScene(content); // ### Inefficient: Maps toScene and then fromScene + clipf = mapToScene(content).boundingRect(); // ### Inefficient: Maps toScene and then fromScene else - clipf = mapToScene(clipf); + clipf = mapToScene(clipf).boundingRect(); - const QRect clip = mapFromScene(clipf).toRect(); + const QRect clip = mapFromScene(clipf).boundingRect().toRect(); QRegion topaint(clip); topaint &= content; |