diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-04 17:50:07 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-04 17:53:49 (GMT) |
commit | e7c4967ec89cbc10dcc9127480532347264edca3 (patch) | |
tree | 1be1e0ce49869358f41b1c12c3528a7e5f33ba2b /src/gui/graphicsview/qgraphicsscene_p.h | |
parent | d7166584025d90dda52a859987f4dfaae12d6004 (diff) | |
download | Qt-e7c4967ec89cbc10dcc9127480532347264edca3.zip Qt-e7c4967ec89cbc10dcc9127480532347264edca3.tar.gz Qt-e7c4967ec89cbc10dcc9127480532347264edca3.tar.bz2 |
Make tst_QGraphicsEffectSource::boundingRect happy.
We cannot modify the transformPtr directly because we might want to
use the original transform later.
The problem in this particular case was that we called source->pixmap()
(which modified the transformPtr), then
source->boundingRect(Qt::DeviceCoordinates) which in turn used wrong
transform to map the bounding rect.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene_p.h b/src/gui/graphicsview/qgraphicsscene_p.h index 6223101..0422124 100644 --- a/src/gui/graphicsview/qgraphicsscene_p.h +++ b/src/gui/graphicsview/qgraphicsscene_p.h @@ -204,7 +204,7 @@ public: void drawSubtreeRecursive(QGraphicsItem *item, QPainter *painter, const QTransform *const, QRegion *exposedRegion, QWidget *widget, qreal parentOpacity = qreal(1.0), const QTransform *const effectTransform = 0); - void draw(QGraphicsItem *, QPainter *, const QTransform *const, QTransform *, + void draw(QGraphicsItem *, QPainter *, const QTransform *const, const QTransform *const, QRegion *, QWidget *, qreal, const QTransform *const, bool, bool); void markDirty(QGraphicsItem *item, const QRectF &rect = QRectF(), bool invalidateChildren = false, |