summaryrefslogtreecommitdiffhomepage
path: root/compat/qhash.hpp
blob: 7d0f27bad8b882df7091f786acbebb091e416535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <QtGlobal>
#include <QString>
#include <QHashFunctions>

#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)

namespace std {
template<> struct hash<QString>
{
    unsigned operator()(const QString& value) const
    {
        return qHash(value);
    }
};
}

#endif