Add support for building with Qt 5.5

This commit is contained in:
Martin Kleusberg
2017-05-12 10:40:24 +02:00
parent bee295da08
commit 6e6f7cdc18

View File

@@ -10,6 +10,15 @@
namespace sqlb {
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
template<typename T>
uint qHash(const QVector<T>& key, uint seed = 0)
Q_DECL_NOEXCEPT_EXPR(noexcept(qHashRange(key.cbegin(), key.cend(), seed)))
{
return qHashRange(key.cbegin(), key.cend(), seed);
}
#endif
QString escapeIdentifier(QString id);
class Object;