qt6-bb10/tests/auto/corelib/kernel/qvariant
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
..
stream Remove QRegExp from QVariant 2020-05-14 12:19:47 +00:00
.gitignore
CMakeLists.txt tst_qvariant: port away from deprecated methods 2022-08-30 22:46:34 +02:00
tst_qvariant.cpp Fix QVariant(QString) <-> enum conversion 2023-02-08 23:20:42 +01:00