From 910448c02a05b7fa5670efaadff3e6c12aa06f04 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Wed, 20 Jan 2010 14:26:23 +1000 Subject: Add qHash(QUrl) for QmlPixmapCache. --- src/declarative/util/qmlpixmapcache.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 QmlPixmapReplyHash; Q_GLOBAL_STATIC(QmlPixmapReplyHash, qmlActivePixmapReplies); -- cgit v0.12