summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeimage_p.h
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-11-04 08:07:44 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-11-05 07:04:45 (GMT)
commitd2c204a93f30238c705209e65e2e8bce148825cd (patch)
tree4541764826a3bcbb99ccc17e869a1299a9732ad0 /src/declarative/graphicsitems/qdeclarativeimage_p.h
parent2abf7cbc2258cc8a11094923a2da796d7529b08f (diff)
downloadQt-d2c204a93f30238c705209e65e2e8bce148825cd.zip
Qt-d2c204a93f30238c705209e65e2e8bce148825cd.tar.gz
Qt-d2c204a93f30238c705209e65e2e8bce148825cd.tar.bz2
Image bounding rect should always include the area being painted
This didn't always happend with fillMode PreserveAspectCrop, resulting in drawing artifacts. Task-number: QT-3933 Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeimage_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeimage_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimage_p.h b/src/declarative/graphicsitems/qdeclarativeimage_p.h
index c8bb30b..0e8034e 100644
--- a/src/declarative/graphicsitems/qdeclarativeimage_p.h
+++ b/src/declarative/graphicsitems/qdeclarativeimage_p.h
@@ -76,6 +76,7 @@ public:
qreal paintedHeight() const;
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
+ QRectF boundingRect() const;
Q_SIGNALS:
void fillModeChanged();