qt6-bb10/tests/auto/corelib/kernel
Ivan Solovev 285a2a75b4 QVariant: use comparison helper macros
The relational operators were removed in
8652c79df0 with the argument that they
do not have a total order. Back than it was a valid argument, because Qt
did not support any of the C++20 ordering types.

Now Qt has its own implementation for all three ordering types, so we
could technically add relational operators and claim that QVariant
provides partial ordering.

However, that could potentially lead to many bugs and/or unexpected
results, if people start using QVariant as a key in std::map/QMap
containers.

We do not want that to happen, so we only use the helper macros to
implement (in)equality operators.

This commit also extends the unit tests, providing more extensive
testing of (in)equality operators and the pre-existing
QVariant::compare() method.

Fixes: QTBUG-113234
Change-Id: I783f3b5df552da782627f4ed0a5bb1b577753a23
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-03-12 21:51:43 +01:00
..
qapplicationstatic Change license for tests files 2024-02-04 09:56:42 +01:00
qchronotimer Correct license for files 2024-03-05 14:39:33 +01:00
qcoreapplication Change license for tests files 2024-02-04 09:56:42 +01:00
qdeadlinetimer Change license for tests files 2024-02-04 09:56:42 +01:00
qelapsedtimer Change license for tests files 2024-02-04 09:56:42 +01:00
qeventdispatcher Change license for tests files 2024-02-04 09:56:42 +01:00
qeventloop Change license for tests files 2024-02-04 09:56:42 +01:00
qjniarray JNI: support construction of QJniArray from std::initializer_list 2024-02-26 20:17:27 +01:00
qjnienvironment Change license for tests files 2024-02-04 09:56:42 +01:00
qjniobject JNI: Fix error with overload resolution when passing string types 2024-03-06 13:00:19 +00:00
qjnitypes JNI: Fix error with overload resolution when passing string types 2024-03-06 13:00:19 +00:00
qmath Change license for tests files 2024-02-04 09:56:42 +01:00
qmetacontainer Change license for tests files 2024-02-04 09:56:42 +01:00
qmetaenum Change license for tests files 2024-02-04 09:56:42 +01:00
qmetamethod Change license for tests files 2024-02-04 09:56:42 +01:00
qmetaobject Change license for tests files 2024-02-04 09:56:42 +01:00
qmetaobjectbuilder Change license for tests files 2024-02-04 09:56:42 +01:00
qmetaproperty Change license for tests files 2024-02-04 09:56:42 +01:00
qmetatype Change license for tests files 2024-02-04 09:56:42 +01:00
qmimedata Change license for tests files 2024-02-04 09:56:42 +01:00
qobject QObject: fix installEventFilterOrder() test flakiness 2024-02-04 18:33:37 +01:00
qpermission Change license for tests files 2024-02-04 09:56:42 +01:00
qpointer Change license for tests files 2024-02-04 09:56:42 +01:00
qproperty Change license for tests files 2024-02-04 09:56:42 +01:00
qsignalblocker Change license for tests files 2024-02-04 09:56:42 +01:00
qsignalmapper Change license for tests files 2024-02-04 09:56:42 +01:00
qsocketnotifier Change license for tests files 2024-02-04 09:56:42 +01:00
qtimer Timers: add Qt::TimerId enum class 2024-03-03 19:56:55 +02:00
qtranslator Change license for tests files 2024-02-04 09:56:42 +01:00
qvariant QVariant: use comparison helper macros 2024-03-12 21:51:43 +01:00
qwineventnotifier Change license for tests files 2024-02-04 09:56:42 +01:00
qwinregistrykey Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt Add QChronoTimer, a timer with nanoseconds precision 2024-03-03 19:56:55 +02:00