diff options
author | Ulf Hermann <[email protected]> | 2025-05-22 12:12:05 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2025-05-24 19:30:46 +0200 |
commit | 335099e810484fddb40e194c2637e05abe0a4792 (patch) | |
tree | 8fa720e14ef6837553ea0226d00ca37c0c13c261 /tests | |
parent | 45413384cd813d39fefa0b878f9b560be9055a62 (diff) |
QtQml: Unregister metatypes before renaming them
We need to make them known by their new names.
Amends commit 0cbe6e62b2dea16550d20848ba42d941c906074d
Pick-to: 6.9 6.8
Change-Id: I652fdc13c012bb8377f8210363e45f3676c64018
Reviewed-by: Olivier De Cannière <[email protected]>
Reviewed-by: Sami Shalayel <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp b/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp index 5cf1e06ed5..c0fa508acf 100644 --- a/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp +++ b/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp @@ -884,6 +884,10 @@ void tst_qqmlmetatype::renameMetaType() // But the name is different QCOMPARE_NE(newTypeName, metaTypeName); + + // The QMetaType registry has been updated + QCOMPARE(QMetaType::fromName(newTypeName), metaType); + QVERIFY(!QMetaType::fromName(metaTypeName).isValid()); } } |