Fix qHash(NormalizedRect)

This commit is contained in:
Sune Vuorela 2023-12-21 20:23:44 +01:00 committed by Albert Astals Cid
parent 0858cd0d5b
commit 0cb6dace0c
2 changed files with 3 additions and 3 deletions

View File

@ -261,9 +261,9 @@ void NormalizedRect::transform(const QTransform &matrix)
bottom = rect.bottom();
}
uint Okular::qHash(const NormalizedRect &r, uint seed)
size_t Okular::qHash(const NormalizedRect &r, size_t seed)
{
return ::qHash(r.bottom, ::qHash(r.right, ::qHash(r.top, ::qHash(r.left, seed))));
return ::qHashMulti(seed, r.bottom, r.right, r.top, r.left);
}
QDebug operator<<(QDebug str, const Okular::NormalizedRect &r)

View File

@ -967,7 +967,7 @@ public:
QColor color;
};
uint qHash(const Okular::NormalizedRect &r, uint seed = 0);
size_t qHash(const Okular::NormalizedRect &r, size_t seed = 0);
}
#ifndef QT_NO_DEBUG_STREAM