aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/src/qml/qmltypes.qdoc2
-rw-r--r--doc/src/qml/qtdeclarative.qdoc2
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/qml/qmltypes.qdoc b/doc/src/qml/qmltypes.qdoc
index ae4ad47c3d..b75c191616 100644
--- a/doc/src/qml/qmltypes.qdoc
+++ b/doc/src/qml/qmltypes.qdoc
@@ -70,6 +70,8 @@ int qmlRegisterType(const char *uri, int versionMajor, int versionMinor, const c
Alternatively, these functions provide a way for other types of C++ types
to be visible in the QML context.
\list
+ \li \l qmlRegisterModuleApi() is suited for registering either a QJSValue
+ or QObject module API (shared instance) into a namespace
\li \l qmlRegisterUncreatableType() is suited for attached
properties and enum types.
\li \l qmlRegisterTypeNotAvailable() is for
diff --git a/doc/src/qml/qtdeclarative.qdoc b/doc/src/qml/qtdeclarative.qdoc
index 48cc898458..5ad637ab50 100644
--- a/doc/src/qml/qtdeclarative.qdoc
+++ b/doc/src/qml/qtdeclarative.qdoc
@@ -351,7 +351,7 @@
// third, register the module API provider with QML by calling this function in an initialization function.
...
- qmlRegisterModuleApi("Qt.example.qobjectApi", 1, 0, example_qobject_module_api_provider);
+ qmlRegisterModuleApi<ModuleApiExample>("Qt.example.qobjectApi", 1, 0, example_qobject_module_api_provider);
...
\endcode