From c74cb3b2492299bd9c8ffd95aed992667079521f Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Mon, 23 Nov 2020 09:40:06 +0100 Subject: qmlfunctions.qdoc: Add QML_IMPLEMENTS_INTERFACES Change-Id: I4ff76b49bd5f40eb58c9f44669bb4836dd9e48be Reviewed-by: Ulf Hermann (cherry picked from commit 7b89ae6ef4158dcbd1940e088c84eba747c166bc) Reviewed-by: Fabian Kosmale --- src/qml/doc/src/qmlfunctions.qdoc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/qml/doc/src/qmlfunctions.qdoc b/src/qml/doc/src/qmlfunctions.qdoc index 9136bc36cc..4241c7ff8f 100644 --- a/src/qml/doc/src/qmlfunctions.qdoc +++ b/src/qml/doc/src/qmlfunctions.qdoc @@ -134,7 +134,22 @@ Interface types are implicitly anonymous and uncreatable in QML. - \sa QML_ELEMENT, QML_NAMED_ELEMENT(), QML_UNCREATABLE(), QML_ANONYMOUS + \b{NOTE:} When inheriting from types using QML_INTERFACE, use \l QML_IMPLEMENTS_INTERFACES + instead of \l Q_INTERFACES. + + \sa QML_IMPLEMENTS_INTERFACES(), QML_ELEMENT, QML_NAMED_ELEMENT(), QML_UNCREATABLE(), QML_ANONYMOUS +*/ + +/*! + \macro QML_IMPLEMENTS_INTERFACES(interfaces) + \relates QQmlEngine + + This macro tells Qt which QML interfaces the class implements. + This macro should only be used for interfacing with classes using \l QML_INTERFACE, use \l Q_INTERFACES otherwise. + It's required in order for declarative registration via \l QML_ELEMENT to function properly. + + + \sa QML_INTERFACE, Q_INTERFACES */ /*! -- cgit v1.2.3