blob: 72c5e7cdf98ac92c9424baaa51a59e8f0b0adf05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
#include <QHash>
#include <QString>
#include <functional>
namespace std {
template<> struct hash<QString> {
size_t operator()(const QString& s) const noexcept {
return (size_t) qHash(s);
}
};
}
#else
#include <QHashFunctions>
#endif
|