aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcomponent.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-11-08 14:20:17 +0100
committerUlf Hermann <ulf.hermann@qt.io>2023-11-24 04:26:56 +0100
commita021bd427328c495cf9969be820a3cfbd41996c6 (patch)
tree89c7a0a3c5121f62dce1dd661fa8196eb0f545a1 /src/qml/qml/qqmlcomponent.h
parentb54f42c41eee9edc4e4b734822a882f5e703c215 (diff)
Make builtins an actual module
This way we can eventually use the metatypes generated by the builtins to validate other module using qmltyperegistrar, and throw informed warnings if types are missing. qmltyperegistrar automatically picks up the metatypes of any library linked into a target. This means it always picks up the builtins metatypes now when QtQml is linked in. We now have to check more closely whether an object binding is actually a group property. QVariant now has a value type metaobject and does not pass as "unknown thing" anymore. We also have to move the QML_FOREIGN macros to QQmlIntegration since we want QML_FOREIGN to declare the builtins but we don't want to depend on QtQml. Task-number: QTBUG-101143 Change-Id: I9f1a2713797291b6624aef0ade599d19e0766907 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlcomponent.h')
-rw-r--r--src/qml/qml/qqmlcomponent.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcomponent.h b/src/qml/qml/qqmlcomponent.h
index e435aa2894..d5e65e21b8 100644
--- a/src/qml/qml/qqmlcomponent.h
+++ b/src/qml/qml/qqmlcomponent.h
@@ -100,7 +100,10 @@ Q_SIGNALS:
protected:
QQmlComponent(QQmlComponentPrivate &dd, QObject* parent);
-#if QT_DEPRECATED_SINCE(6, 3)
+#if defined(Q_MOC_RUN)
+ // TODO: moc on macOS cannot decipher the deprecation below
+ Q_INVOKABLE void createObject(QQmlV4Function *);
+#elif QT_DEPRECATED_SINCE(6, 3)
QT_DEPRECATED_X("Use the overload with proper arguments")
Q_INVOKABLE void createObject(QQmlV4Function *);
#endif