qt5base-lts/tests/auto/corelib
Sona Kurazyan a9d51298ae Fix metatype declaration for QHash/QMultiHash with no operator==
When declaring metatypes, the metatype system tries to detect if the
comparison operators for the given type exist and automatically register
them. In case of QHash, the equality operator was enabled if the value
type provides one. But the implementation needs equality operator of
the key type as well. As a result, when the key type has no equality
operator, the metatype system detects that the equality operator is
available for the QHash itself, but the compilation for metatype
registration fails when trying to instantiate the code that uses
equality operator for the key. This is fixed by enabling equality
operators for the QHash only when both the key and value types provide
one.

The same issue existed also for QMultiHash, with the difference, that
QMultiHash didn't have the constraints even on the value type. So added
checks for both.

Fixes: QTBUG-96256
Pick-to: 6.2
Change-Id: Ib8b6d365223f2b3515cbcb1843524cd6f867a6ac
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-10-20 17:16:53 +02:00
..
animation Avoid use after free in tst_qsequentialanimationgroup 2021-06-02 16:45:23 +02:00
global CMake: remove support for building Qt with the old Intel compiler 2021-10-13 12:49:49 -07:00
io Make QDir::mkpath() return true when given an existing root path 2021-10-20 15:04:51 +00:00
itemmodels Untangle qsortfilterproxymodel unittests 2021-10-01 18:30:25 +02:00
kernel QObjectCompatProperty: Add support for custom getters 2021-10-20 17:04:51 +02:00
mimetypes Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin QPlugin: Move the plugin metadata to a note in ELF platforms 2021-10-18 01:53:27 -07:00
serialization Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
text Update UCD to Revision 28 2021-10-18 16:45:10 +00:00
thread Optimize QPromise destructor 2021-10-08 17:17:20 +02:00
time Fix handling of time-zone gap in QTimeZonePrivate::dataForLocalTime() 2021-10-12 22:52:50 +02:00
tools Fix metatype declaration for QHash/QMultiHash with no operator== 2021-10-20 17:16:53 +02:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00