diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-11-12 03:02:58 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-11-12 03:02:58 (GMT) |
commit | af60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a (patch) | |
tree | 72780b739b307fb0dfc08b76c713af4039298406 /src/declarative/graphicsitems/qdeclarativeimage.cpp | |
parent | 6e49bbc11a0cbe2f596f26066256154b0a5b23be (diff) | |
download | Qt-af60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a.zip Qt-af60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a.tar.gz Qt-af60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a.tar.bz2 |
Add 'cached' property to Image element
Setting cached to false is useful when dealing with large images, to
make sure that they aren't cached at the expense of small 'ui element' images.
Task-number: QTBUG-7300
Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeimage.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeimage.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimage.cpp b/src/declarative/graphicsitems/qdeclarativeimage.cpp index 3b08a9b..c9eb258 100644 --- a/src/declarative/graphicsitems/qdeclarativeimage.cpp +++ b/src/declarative/graphicsitems/qdeclarativeimage.cpp @@ -458,6 +458,15 @@ QRectF QDeclarativeImage::boundingRect() const are always loaded asynchonously. */ +/*! + \qmlproperty bool Image::cached + \since Quick 1.1 + + Specifies that the image should be cached. The default value is + true. Setting \a cached to false is useful when dealing with large images, + to make sure that they aren't cached at the expense of small 'ui element' images. +*/ + void QDeclarativeImage::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *) { Q_D(QDeclarativeImage); |