diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-11-04 08:07:44 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-11-05 07:04:45 (GMT) |
commit | d2c204a93f30238c705209e65e2e8bce148825cd (patch) | |
tree | 4541764826a3bcbb99ccc17e869a1299a9732ad0 /src/declarative/graphicsitems/qdeclarativeimage_p.h | |
parent | 2abf7cbc2258cc8a11094923a2da796d7529b08f (diff) | |
download | Qt-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.h | 1 |
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(); |