2018-05-28 08:34:54 +02:00
|
|
|
#pragma once
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-05-28 08:34:54 +02:00
|
|
|
#include <QHash>
|
|
|
|
#include <QString>
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2023-01-08 13:07:06 +01:00
|
|
|
#include <functional>
|
|
|
|
|
2018-05-28 08:34:54 +02:00
|
|
|
namespace std {
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2019-10-03 10:13:49 +02:00
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
2018-05-28 08:34:54 +02:00
|
|
|
template <>
|
|
|
|
struct hash<QString> {
|
|
|
|
std::size_t operator()(const QString &s) const
|
|
|
|
{
|
|
|
|
return qHash(s);
|
|
|
|
}
|
|
|
|
};
|
2019-10-03 10:07:14 +02:00
|
|
|
#endif
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-05-28 08:34:54 +02:00
|
|
|
} // namespace std
|