# HG changeset patch # User Chris Cannam # Date 1570695132 -3600 # Node ID 8c34ecba70dff5f1b2088ca05dd250dbc2c1acc0 # Parent 13bd41bd8a175370c7e1c48670fc1d7c3cabbfe7 Compatibility with Qt 5.2 (for the Ubuntu 14.04 build) diff -r 13bd41bd8a17 -r 8c34ecba70df base/Event.h --- a/base/Event.h Tue Oct 01 11:22:48 2019 +0100 +++ b/base/Event.h Thu Oct 10 09:12:12 2019 +0100 @@ -385,6 +385,16 @@ 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); if (m_haveValue) h ^= qHash(m_value);