diff -r b72c6db6890b -r 5dc02b23752f src/corelib/io/qurl.h --- a/src/corelib/io/qurl.h Wed Jun 23 19:07:03 2010 +0300 +++ b/src/corelib/io/qurl.h Tue Jul 06 15:10:48 2010 +0300 @@ -46,6 +46,7 @@ #include #include #include +#include QT_BEGIN_HEADER @@ -75,6 +76,7 @@ RemovePath = 0x20, RemoveQuery = 0x40, RemoveFragment = 0x80, + // 0x100: private: normalized StripTrailingSlash = 0x10000 }; @@ -268,6 +270,11 @@ inline DataPtr &data_ptr() { return d; } }; +inline uint qHash(const QUrl &url) +{ + return qHash(url.toEncoded(QUrl::FormattingOption(0x100))); +} + Q_DECLARE_TYPEINFO(QUrl, Q_MOVABLE_TYPE); Q_DECLARE_SHARED(QUrl) Q_DECLARE_OPERATORS_FOR_FLAGS(QUrl::FormattingOptions)