1 #pragma once 2 3 #include <QHash> 4 #include <QString> 5 6 namespace std { 7 8 #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) 9 template <> 10 struct hash<QString> { operator ()std::hash11 std::size_t operator()(const QString &s) const 12 { 13 return qHash(s); 14 } 15 }; 16 #endif 17 18 } // namespace std 19