Commit b8d22401 authored by Gleb Popov's avatar Gleb Popov 💬

Implement qHash() for Okular::NormalizedRect.

parent 9d0f5e63
......@@ -267,6 +267,11 @@ void NormalizedRect::transform( const QTransform &matrix )
bottom = rect.bottom();
}
uint qHash( const NormalizedRect& r, uint seed )
{
return qHash(r.bottom, qHash(r.right, qHash(r.top, qHash(r.left, seed))));
}
QDebug operator<<( QDebug str, const Okular::NormalizedRect& r )
{
str.nospace() << "NormRect(" << r.left << "," << r.top << " x " << ( r.right - r.left ) << "+" << ( r.bottom - r.top ) << ")";
......
......@@ -898,6 +898,8 @@ class HighlightAreaRect : public RegularAreaRect
}
uint qHash(const Okular::NormalizedRect& r, uint seed = 0);
#ifndef QT_NO_DEBUG_STREAM
/**
* Debug operator for normalized @p point.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment