added qhash functions for timerange and rational
So these keys can be used in QHash containers, they need functions for how to create those hashes.
This commit is contained in:
@@ -421,3 +421,8 @@ QDebug operator<<(QDebug debug, const rational &r)
|
||||
debug.nospace() << r.numerator() << "/" << r.denominator();
|
||||
return debug.space();
|
||||
}
|
||||
|
||||
uint qHash(const rational &r, uint seed)
|
||||
{
|
||||
return qHash(r.toDouble(), seed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user