summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-07-13 11:33:30 +0200
committerLars Knoll <lars.knoll@qt.io>2020-08-24 00:17:33 +0200
commit4ccf76ff53a68850772f45a04527694de9f8da18 (patch)
tree18f1d45d0270a3007087160ad50db47d58fd8f58 /tests
parente45fa5aaf0abdbd87c3d68175fc5171a7d96a49f (diff)
Start porting conversions over from QVariant to QMetaType
This will ensure full symmetry in what QVariant and QMetaType support. With this done, QVariant will become simply a container that can hold any QMetaType with fully symmetric functionality between both. Change-Id: I796d4368a2bc0f08cf4f70f4465ed6a0e07bdd76 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
index c2c8d3f431..c1fa8b0a9a 100644
--- a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
+++ b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
@@ -3432,17 +3432,12 @@ void tst_QVariant::moreCustomTypes()
// Float is converted to double, adding insignificant bits
PLAY_WITH_VARIANT(12.12f, false, "12.119999885559082", 12.12f, true);
- PLAY_WITH_VARIANT('a', false, "a", 'a', true);
- PLAY_WITH_VARIANT((unsigned char)('a'), false, "a", 'a', true);
- PLAY_WITH_VARIANT( quint8(12), false, "\xc", 12, true);
- PLAY_WITH_VARIANT( qint8(13), false, "\xd", 13, true);
PLAY_WITH_VARIANT(quint16(14), false, "14", 14, true);
PLAY_WITH_VARIANT( qint16(15), false, "15", 15, true);
PLAY_WITH_VARIANT(quint32(16), false, "16", 16, true);
PLAY_WITH_VARIANT( qint32(17), false, "17", 17, true);
PLAY_WITH_VARIANT(quint64(18), false, "18", 18, true);
PLAY_WITH_VARIANT( qint64(19), false, "19", 19, true);
- PLAY_WITH_VARIANT( qint8(-12), false, QLatin1String("\xf4"), -12, true); // qint8 is char, so it gets converted via QChar
PLAY_WITH_VARIANT( qint16(-13), false, "-13", -13, true);
PLAY_WITH_VARIANT( qint32(-14), false, "-14", -14, true);
PLAY_WITH_VARIANT( qint64(-15), false, "-15", -15, true);