You've already forked nodeeditor
mirror of
https://github.com/AxioDL/nodeeditor.git
synced 2026-03-30 11:48:31 -07:00
28 lines
369 B
C++
28 lines
369 B
C++
#pragma once
|
|
|
|
#include <QtGlobal>
|
|
|
|
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
|
|
|
|
// As of 5.14 there is a specialization std::hash<QString>
|
|
|
|
#include <functional>
|
|
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QVariant>
|
|
|
|
namespace std
|
|
{
|
|
template<>
|
|
struct hash<QString>
|
|
{
|
|
inline std::size_t
|
|
operator()(QString const &s) const
|
|
{
|
|
return qHash(s);
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|