forked from qt-creator/qt-creator
Utils: add hash function for MimeType
Change-Id: I4ba86887a4ed575e4aee0cbe1157254e8cd5abb8 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user