Utils: add hash function for MimeType

Change-Id: I4ba86887a4ed575e4aee0cbe1157254e8cd5abb8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2018-05-16 10:23:05 +02:00
parent 07d3f80b54
commit 33aaf36138

View File

@@ -121,6 +121,8 @@ protected:
QExplicitlySharedDataPointer<Internal::MimeTypePrivate> d;
};
inline uint QTCREATOR_UTILS_EXPORT qHash(const MimeType &mime) { return qHash(mime.name()); }
} // Utils
//Q_DECLARE_SHARED(Utils::MimeType)
@@ -131,3 +133,4 @@ class QDebug;
QTCREATOR_UTILS_EXPORT QDebug operator<<(QDebug debug, const Utils::MimeType &mime);
QT_END_NAMESPACE
#endif