summaryrefslogtreecommitdiff
path: root/src/declarative/util/qdeclarativepixmapcache_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-02-24 15:23:23 +1000
committerMartin Jones <martin.jones@nokia.com>2010-02-24 15:23:23 +1000
commit8848b63187cf1b073891bdd6998273a8869bb033 (patch)
tree08e9934d033c474c5cb03e2dfbf277be90d62c9f /src/declarative/util/qdeclarativepixmapcache_p.h
parent915ab7d8c75a190003db97bc0a92656ee65f5b4b (diff)
downloadqt4-tools-8848b63187cf1b073891bdd6998273a8869bb033.tar.gz
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/util/qdeclarativepixmapcache_p.h')
-rw-r--r--src/declarative/util/qdeclarativepixmapcache_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativepixmapcache_p.h b/src/declarative/util/qdeclarativepixmapcache_p.h
index c6152547e5..b8949db9c4 100644
--- a/src/declarative/util/qdeclarativepixmapcache_p.h
+++ b/src/declarative/util/qdeclarativepixmapcache_p.h
@@ -92,7 +92,7 @@ private:
class Q_DECLARATIVE_EXPORT QDeclarativePixmapCache
{
public:
- static QDeclarativePixmapReply::Status get(const QUrl& url, QPixmap *pixmap);
+ static QDeclarativePixmapReply::Status get(const QUrl& url, QPixmap *pixmap, bool async=false);
static QDeclarativePixmapReply *request(QDeclarativeEngine *, const QUrl& url);
static void cancel(const QUrl& url, QObject *obj);
static int pendingRequests();