summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-11-12 03:02:58 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-11-12 03:02:58 (GMT)
commitaf60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a (patch)
tree72780b739b307fb0dfc08b76c713af4039298406 /src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
parent6e49bbc11a0cbe2f596f26066256154b0a5b23be (diff)
downloadQt-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/qdeclarativeimagebase_p_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h b/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
index 3d23ba9..a539649 100644
--- a/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
+++ b/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
@@ -70,7 +70,8 @@ public:
: status(QDeclarativeImageBase::Null),
progress(0.0),
explicitSourceSize(false),
- async(false)
+ async(false),
+ cached(true)
{
QGraphicsItemPrivate::flags = QGraphicsItemPrivate::flags & ~QGraphicsItem::ItemHasNoContents;
}
@@ -82,6 +83,7 @@ public:
QSize sourcesize;
bool explicitSourceSize : 1;
bool async : 1;
+ bool cached : 1;
};
QT_END_NAMESPACE