mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
Implement qHash() for Okular::NormalizedRect.
This commit is contained in:
parent
9d0f5e6312
commit
b8d22401f2
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue