summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/type/qprimitives_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns/type/qprimitives_p.h')
-rw-r--r--src/xmlpatterns/type/qprimitives_p.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/xmlpatterns/type/qprimitives_p.h b/src/xmlpatterns/type/qprimitives_p.h
index 818cb2275..78bd4ae13 100644
--- a/src/xmlpatterns/type/qprimitives_p.h
+++ b/src/xmlpatterns/type/qprimitives_p.h
@@ -53,6 +53,8 @@
#define Patternist_Primitives_H
#include <QtGlobal>
+#include <QtCore/QHash>
+#include <QtCore/QUrl>
/**
* @file
@@ -72,6 +74,17 @@ QT_BEGIN_NAMESPACE
class QString;
/**
+ * @internal
+ *
+ * A method to allow a QHash or QSet with QUrl
+ * as key type.
+ */
+inline uint qHash(const QUrl &uri)
+{
+ return qHash(uri.toString());
+}
+
+/**
* @short The namespace for the internal API of QtXmlPatterns
* @internal
*/