diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-02-24 15:23:23 +1000 |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-02-24 15:23:23 +1000 |
commit | 8848b63187cf1b073891bdd6998273a8869bb033 (patch) | |
tree | 08e9934d033c474c5cb03e2dfbf277be90d62c9f /src/declarative/util/qdeclarativepixmapcache_p.h | |
parent | 915ab7d8c75a190003db97bc0a92656ee65f5b4b (diff) | |
download | qt4-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.h | 2 |
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(); |