# HG changeset patch # User Chris Cannam # Date 1570695517 -3600 # Node ID 705ea8699d49c3cc978c477d5191f1f72c2234f9 # Parent 8c34ecba70dff5f1b2088ca05dd250dbc2c1acc0 OK, that didn't work because of scoping/overload rules. Try this diff -r 8c34ecba70df -r 705ea8699d49 base/Event.h --- a/base/Event.h Thu Oct 10 09:12:12 2019 +0100 +++ b/base/Event.h Thu Oct 10 09:18:37 2019 +0100 @@ -26,6 +26,14 @@ #include +#if (QT_VERSION < QT_VERSION_CHECK(5, 3, 0)) +uint qHash(float key, uint seed) { + return key != 0.0f ? + qHash(reinterpret_cast(&key), sizeof(key), seed) : + seed; +} +#endif + /** * An immutable(-ish) type used for point and event representation in * sparse models, as well as for interchange within the clipboard. An @@ -384,16 +392,6 @@ return list.join(delimiter); } - -#if (QT_VERSION < QT_VERSION_CHECK(5, 3, 0)) -private: - uint qHash(float key, uint seed) const { - return key != 0.0f ? - qHash(reinterpret_cast(&key), sizeof(key), seed) : - seed; - } -public: -#endif uint hash(uint seed = 0) const { uint h = qHash(m_label, seed);