summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-02-24 05:23:23 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-02-24 05:23:23 (GMT)
commit8848b63187cf1b073891bdd6998273a8869bb033 (patch)
tree08e9934d033c474c5cb03e2dfbf277be90d62c9f /src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
parent915ab7d8c75a190003db97bc0a92656ee65f5b4b (diff)
downloadQt-8848b63187cf1b073891bdd6998273a8869bb033.zip
Qt-8848b63187cf1b073891bdd6998273a8869bb033.tar.gz
Qt-8848b63187cf1b073891bdd6998273a8869bb033.tar.bz2
Add an "asynchonous" property to Image.
Allows loading/decoding local images in an asynchronous thread (already the case for network images).
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h b/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
index d540e40..2e062a8 100644
--- a/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
+++ b/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
@@ -68,7 +68,8 @@ public:
QDeclarativeImageBasePrivate()
: status(QDeclarativeImageBase::Null),
progress(0.0),
- pendingPixmapCache(false)
+ pendingPixmapCache(false),
+ async(false)
{
}
@@ -76,7 +77,8 @@ public:
QDeclarativeImageBase::Status status;
QUrl url;
qreal progress;
- bool pendingPixmapCache;
+ bool pendingPixmapCache : 1;
+ bool async : 1;
};
QT_END_NAMESPACE