comparison base/Event.h @ 1799:8c34ecba70df

Compatibility with Qt 5.2 (for the Ubuntu 14.04 build)
author Chris Cannam
date Thu, 10 Oct 2019 09:12:12 +0100
parents baafe1bb7e51
children 705ea8699d49
comparison
equal deleted inserted replaced
1798:13bd41bd8a17 1799:8c34ecba70df
383 if (m_label != "") list << m_label; 383 if (m_label != "") list << m_label;
384 384
385 return list.join(delimiter); 385 return list.join(delimiter);
386 } 386 }
387 387
388 #if (QT_VERSION < QT_VERSION_CHECK(5, 3, 0))
389 private:
390 uint qHash(float key, uint seed) const {
391 return key != 0.0f ?
392 qHash(reinterpret_cast<const uchar *>(&key), sizeof(key), seed) :
393 seed;
394 }
395 public:
396 #endif
397
388 uint hash(uint seed = 0) const { 398 uint hash(uint seed = 0) const {
389 uint h = qHash(m_label, seed); 399 uint h = qHash(m_label, seed);
390 if (m_haveValue) h ^= qHash(m_value); 400 if (m_haveValue) h ^= qHash(m_value);
391 if (m_haveLevel) h ^= qHash(m_level); 401 if (m_haveLevel) h ^= qHash(m_level);
392 h ^= qHash(m_frame); 402 h ^= qHash(m_frame);