FilterKey: fix ambiguous relational operators in C++20


The member operators weren't const, leading them to be ambiguous with
their reversed versions.

Fix by adding a private equals() function (to avoid churning the
implementation) and making the relational operators hidden friends.

Pick-to: 6.4 6.3 6.2 5.15
Task-number: QTBUG-104172
Change-Id: I97e74ef26fc2712d6f97c8f7d7bd61d6a625b42e
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
commitbcd20a74c9f2cd5920ecc5c1c0bb6d577db6cb50
parent42f96fe2074bc63cfb8a4ae71a7262d554661da2
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeTue, 12 Jul 2022 21:07:22 +0200