Fix use of QT_BEGIN_NAMESPACE when declaring qHash() function

This commit is contained in:
Martchus 2023-07-30 16:57:19 +02:00
parent 8c2ab29927
commit 9cb8702d13
1 changed files with 2 additions and 1 deletions

View File

@ -3,11 +3,12 @@
#include <QtGlobal>
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QT_BEGIN_NAMESPACE
namespace TagParser {
enum class KnownField : unsigned int;
}
QT_BEGIN_NAMESPACE
uint qHash(const TagParser::KnownField key, uint seed = 0) noexcept;
QT_END_NAMESPACE
#endif
#include <QJSValue>