diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-01-20 04:26:23 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-01-20 04:26:23 (GMT) |
commit | 910448c02a05b7fa5670efaadff3e6c12aa06f04 (patch) | |
tree | 63c2d3f39f594152368dd6c8df561a3633e48b98 /src/declarative/util/qmlpixmapcache.cpp | |
parent | 63fe6b6d3ff66067b8309c6111c49c6a41620e55 (diff) | |
download | Qt-910448c02a05b7fa5670efaadff3e6c12aa06f04.zip Qt-910448c02a05b7fa5670efaadff3e6c12aa06f04.tar.gz Qt-910448c02a05b7fa5670efaadff3e6c12aa06f04.tar.bz2 |
Add qHash(QUrl) for QmlPixmapCache.
Diffstat (limited to 'src/declarative/util/qmlpixmapcache.cpp')
-rw-r--r-- | src/declarative/util/qmlpixmapcache.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/util/qmlpixmapcache.cpp b/src/declarative/util/qmlpixmapcache.cpp index f18421c..b8d342c 100644 --- a/src/declarative/util/qmlpixmapcache.cpp +++ b/src/declarative/util/qmlpixmapcache.cpp @@ -215,6 +215,11 @@ static QString toLocalFileOrQrc(const QUrl& url) return r; } +inline uint qHash(const QUrl &uri) +{ + return qHash(uri.toEncoded(QUrl::FormattingOption(0x100))); +} + typedef QHash<QUrl, QmlPixmapReply *> QmlPixmapReplyHash; Q_GLOBAL_STATIC(QmlPixmapReplyHash, qmlActivePixmapReplies); |