diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp index 4bbfa6bbefb..0846d144bd1 100644 --- a/src/corelib/tools/qhash.cpp +++ b/src/corelib/tools/qhash.cpp @@ -1369,6 +1369,17 @@ size_t qHash(long double key, size_t seed) noexcept } } +/*! + \fn template , bool> = true> size_t qHash(Enum key, size_t seed) + \since 6.5 + \qhashbuiltin + + \note Prior to Qt 6.5, unscoped enums relied on the integer overloads of this + function due to implicit conversion to their underlying integer types. + For scoped enums, you had to implement an overload yourself. This is still the + backwards-compatible fix to remain compatible with older Qt versions. +*/ + /*! \fn size_t qHash(const QChar key, size_t seed = 0) \since 5.0 \qhashold{QHash}