diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-14 14:25:18 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-08-24 00:18:31 +0200 |
commit | c7ce1bc05c1ec2f63dd2531f23a3e9f6fe866556 (patch) | |
tree | 60ef42109895d8bb8c796b58f21800f2a87b8cbe /tests/auto/corelib/kernel/qmetatype | |
parent | 9d36032370f7b81279ff8774afd7dea4ea57ee6a (diff) |
Move conversions to and from *Iterables into QMetaType
Those were not yet supported by QMetaType.
Change-Id: I9f85476049f200e35939ac58ef7e8b4e7cbe0b77
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel/qmetatype')
-rw-r--r-- | tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h index 3f00db5519..43a099de17 100644 --- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h +++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h @@ -121,6 +121,10 @@ template<> struct TestValueFactory<QMetaType::QVariantMap> { template<> struct TestValueFactory<QMetaType::QVariantHash> { static QVariantHash *create() { return new QVariantHash(); } }; +template<> struct TestValueFactory<QMetaType::QVariantPair> { + static QVariantPair *create() { return new QVariantPair(); } +}; + template<> struct TestValueFactory<QMetaType::QVariantList> { static QVariantList *create() { return new QVariantList(QVariantList() << 123 << "Q" << "Variant" << "List"); } }; |