qt5base-lts/tests/auto/corelib
Christian Ehrlicher 66a1a71f1f Fix QVariant(QString) <-> enum conversion
A QVariant(QString) was not convertible to an enum not registered with
Q_ENUM() which worked fine in Qt5.
The same problem exists for QVariant(enum) to QString.
Fix it by not bailing out when no metatype for the enum was found and
try to convert it to a qlonglong instead (which is then correctly
converted to the enum type).

Fixes: QTBUG-109744
Pick-to: 6.5 6.4
Change-Id: Ie7bb016a860455b69508f0f46b36474c9c294f3a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-02-08 23:20:42 +01:00
..
animation Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
global QTypeInfo: remove further usages of isPointer / isIntegral 2022-12-30 01:51:27 +01:00
io Avoid potential data races caused by qt_ntfs_permission_lookup 2023-02-08 12:59:19 +01:00
ipc IPC: switch the default key type on Unix to POSIX realtime 2023-01-22 13:02:11 -03:00
itemmodels Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
kernel Fix QVariant(QString) <-> enum conversion 2023-02-08 23:20:42 +01:00
mimetypes QMimeDatabase: add a test to ensure we can detect Unix specials 2023-02-02 12:17:25 -08:00
platform CMake: Remove direct qt_android_generate_deployment_settings call 2022-12-15 20:23:28 +01:00
plugin QUuid: add the ability to specify the byte order for 128-bit IDs 2022-12-16 19:29:10 +01:00
serialization QXmlStreamWriter: fix a thinko in doWriteToDevice(QSV) 2022-12-16 22:58:11 +01:00
text Update CLDR to v42 2023-02-07 19:04:11 +01:00
thread QPromise: improve documentation snippet 2023-01-09 10:03:48 +01:00
time Move qtLocalTime() to qtenvironmentvariables.cpp as qLocalTime() 2023-02-03 14:45:31 +01:00
tools QVarLengthArray: add STL-style assign() 2023-02-08 21:13:08 +01:00
CMakeLists.txt IPC: Move QSharedMemory and QSystemSemaphore from kernel/ to ipc/ 2023-01-22 13:01:53 -03:00