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 /src | |
parent | 45413384cd813d39fefa0b878f9b560be9055a62 (diff) |
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 'src')
-rw-r--r-- | src/qml/qml/qqmlmetatype.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp index 09f170c326..d3fa10ea4f 100644 --- a/src/qml/qml/qqmlmetatype.cpp +++ b/src/qml/qml/qqmlmetatype.cpp @@ -159,18 +159,19 @@ static void addQQmlMetaTypeInterfaces( QQmlMetaTypeData::CompositeMetaTypes &types = data->compositeMetaTypes[url]; if (types.type) { Q_ASSERT(types.listType); + + QMetaType::unregisterMetaType(QMetaType(types.type)); + QMetaType::unregisterMetaType(QMetaType(types.listType)); + types.type->name = std::move(ptr); types.type->QMetaTypeInterface::name = types.type->name.constData(); types.listType->name = std::move(lst); types.listType->QMetaTypeInterface::name = types.listType->name.constData(); - priv->typeId = QMetaType(types.type); - priv->listId = QMetaType(types.listType); - return; + } else { + types.type = new QQmlMetaTypeInterface(std::move(ptr)); + types.listType = new QQmlListMetaTypeInterface(std::move(lst), types.type); } - types.type = new QQmlMetaTypeInterface(std::move(ptr)); - types.listType = new QQmlListMetaTypeInterface(std::move(lst), types.type); - QMetaType ptr_type(types.type); QMetaType lst_type(types.listType); |