diff options
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); |