QBluetoothUuid: fix missing qHash() overload


The class was hashable via implicit conversion to its public base
class, QUUuid.

But that involves the infamous 1-to-2-arg qHash() adapter template
that we want to get rid of (deprecated/=delete), so provide a matching
qHash() overload that calls the overload for the base class.

Because this is a public class and the implicit qHash() overload was
from a template, thus inline, we need to retain compatibility with the
way the adapter calculated the hash (call qHash() with seed = 0 and
then xor seed into the result. This is what QHashPrivate::ex1to2arg()
does, falling back to the idiomatic way of passing the seed as the
second argument of qHash() in Qt 7).

Pick-to: 6.11 6.11.1
Task-number: QTBUG-145851
Change-Id: Ic07d32d3dfb262bb3eec0c600ade97785cc94955
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit5f2e7654eb52dde4a346de644a871967df871399
parent07938829fe0b8544410de8a36363ae0c58d8b6ce
authorMarc Mutz <marc.mutz@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeMon, 4 May 2026 17:20:41 +0000