Compare commits

...

2 Commits

Author SHA1 Message Date
Sine Striker dd75e73e50 Inline ExtraDataType hash function 2023-09-28 20:23:12 +08:00
Sine Striker 0563bb8342 Add hash function for ExtraDataType 2023-09-28 14:28:24 +08:00
2 changed files with 7 additions and 1 deletions

2
cmake

@ -1 +1 @@
Subproject commit 201880ee1c54abe17abf8b04f8d889bd17a9af8e Subproject commit d32871be6542a9e9a066aaa1ddea8fe1a6cd2d86

View File

@ -116,6 +116,12 @@ enum class ExtraDataType : quint8
FramelessQuickHelper FramelessQuickHelper
}; };
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
inline uint qHash(ExtraDataType key, uint seed = 0) noexcept {
return ::qHash(static_cast<quint8>(key), seed);
}
#endif
struct FRAMELESSHELPER_CORE_API FramelessExtraData struct FRAMELESSHELPER_CORE_API FramelessExtraData
{ {
FramelessExtraData(); FramelessExtraData();