From 0477c78a04b8e3cf4ff606561c6538f016576056 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Sat, 5 Feb 2022 22:59:17 +0100 Subject: QMetaProperty: remove property auto-registration code Qt 6 automatically registers all types used in properties. Thus, the functionality is mostly obsolete since Qt 6. We can simply return the stored metatype's id instead. The code in moc is kept in place for compatibility with older code, though there seem to be no remaining users of the metacall in Qt itself anymore. Change-Id: I3c654150988ae7780b4e9ea1f16191fdadf8d791 Reviewed-by: Lars Knoll --- src/tools/moc/generator.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tools/moc') diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp index 3e838818f9..3f97544cf2 100644 --- a/src/tools/moc/generator.cpp +++ b/src/tools/moc/generator.cpp @@ -1040,6 +1040,7 @@ void Generator::generateMetacall() } +// ### Qt 7 (6.x?): remove QMultiMap Generator::automaticPropertyMetaTypesHelper() { QMultiMap automaticPropertyMetaTypes; -- cgit v1.2.3