Fix qmlRegisterModuleApi function linkage
authorChris Adams <christopher.adams@nokia.com>
Mon, 2 Jul 2012 07:21:45 +0000 (17:21 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Jul 2012 03:20:23 +0000 (05:20 +0200)
The qdoc tag for the \fn doc was incorrect, leading to linkage errors.

Task-number: QTBUG-26236
Change-Id: Ifd407915d9a1461bb2b48a6bf54bb085425ba76b
Reviewed-by: Bea Lam <bea.lam@nokia.com>

src/qml/doc/src/cppintegration/functions.qdoc
src/qml/doc/src/cppintegration/registercpptypes.qdoc
src/qml/doc/src/qmlfunctions.qdoc

index 10a9434..d32dd77 100644 (file)
@@ -200,8 +200,9 @@ QML is by registering a QObject module API.  This allows functionality
 and data to be exposed in a namespace which is accessible from QML.
 See the documentation about
 \l{Defining QML Object Types from C++#Module-API-Type-Registration}
-for information about module APIs, and see the \l{qmlRegisterModuleApi<T>()}
-documentation for details on how to register and use a module API.
+{Module API type registration} for information about module APIs,
+and see the \l{qmlRegisterModuleApi()} documentation for details on how to
+register and use a module API.
 
 A module API is instantiated and owned by the engine as a singleton.
 Thus, it is more performant to implement common functionality in a module
index 5020b68..fc11cfc 100644 (file)
@@ -225,7 +225,7 @@ int qmlRegisterType(const char *uri, int versionMajor, int versionMinor, const c
     A QJSValue may also be exposed as a module API, however clients should
     be aware that properties of such a module API cannot be bound to.
 
-    See \l{qmlRegisterModuleApi<T>()} for more information on how implement and
+    See \l{qmlRegisterModuleApi()} for more information on how implement and
     register a new module API, and how to use an existing module API.
 
 \section1 Type Revisions and Versions
index 974d99c..e8f6e5f 100644 (file)
   */
 
 /*!
-   \fn template<typename T> int qmlRegisterModuleApi(const char *uri, int versionMajor, int versionMinor, QObject *(*callback)(QQmlEngine *, QJSEngine *))
+   \fn int qmlRegisterModuleApi(const char *uri, int versionMajor, int versionMinor, QObject *(*callback)(QQmlEngine *, QJSEngine *))
    \relates QQmlEngine
 
    This function may be used to register a module API provider \a callback in a particular \a uri