diff options
author | Topi Reinio <topi.reinio@qt.io> | 2018-03-01 12:40:21 +0100 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2018-04-11 07:19:12 +0000 |
commit | b36bf0b3eaa026e22a87865e106f54be6b520811 (patch) | |
tree | 61b10cdf1634851820465ffbf6724e9be6d7f071 /src/androidextras/jni/qandroidjniobject.cpp | |
parent | a2157a9dd2ee4ed3e998654595544dadaf129fe8 (diff) |
Doc: Fix documentation issues when using Clang-enabled QDocv5.11.0-beta4
QDoc in Qt 5.11 uses Clang to parse the C++ source for documentation
comments. Unlike the old parser, Clang requires a module header to
be present as well as correct include paths to generate the docs
correctly. However, these are available from the build system only
when building for Android, not when generating the documentation
on a system with no Android-related assets.
To fix this, create a 'dummy' module header specific to doc builds,
add required relative include paths in .qdocconf, and fix the
documentation \fn commands to work with Clang.
Change-Id: Ia3d4e50ff8756cd8c8aae9cd3c3d1492eb7db328
Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/androidextras/jni/qandroidjniobject.cpp')
-rw-r--r-- | src/androidextras/jni/qandroidjniobject.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/androidextras/jni/qandroidjniobject.cpp b/src/androidextras/jni/qandroidjniobject.cpp index cee0260..8154a30 100644 --- a/src/androidextras/jni/qandroidjniobject.cpp +++ b/src/androidextras/jni/qandroidjniobject.cpp @@ -326,9 +326,9 @@ QAndroidJniObject::~QAndroidJniObject() } /*! - \fn T QAndroidJniObject::callMethod(const char *methodName, const char *signature, ...) const + \fn template <typename T> T QAndroidJniObject::callMethod(const char *methodName, const char *sig, ...) const - Calls the method \a methodName with \a signature and returns the value. + Calls the method \a methodName with a signature \a sig and returns the value. \code QAndroidJniObject myJavaString = ...; @@ -338,7 +338,7 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn T QAndroidJniObject::callMethod(const char *methodName) const + \fn template <typename T> T QAndroidJniObject::callMethod(const char *methodName) const Calls the method \a methodName and returns the value. @@ -374,7 +374,7 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn T QAndroidJniObject::callStaticMethod(jclass clazz, const char *methodName) + \fn template <typename T> T QAndroidJniObject::callStaticMethod(jclass clazz, const char *methodName) Calls the static method \a methodName on \a clazz and returns the value. @@ -387,7 +387,7 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn T QAndroidJniObject::callStaticMethod(const char *className, const char *methodName) + \fn template <typename T> T QAndroidJniObject::callStaticMethod(const char *className, const char *methodName) Calls the static method \a methodName on class \a className and returns the value. @@ -397,7 +397,7 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn T QAndroidJniObject::callStaticMethod(const char *className, const char *methodName, const char *signature, ...) + \fn template <typename T> T QAndroidJniObject::callStaticMethod(const char *className, const char *methodName, const char *signature, ...) Calls the static method with \a methodName with \a signature on class \a className with optional arguments. @@ -411,7 +411,7 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn T QAndroidJniObject::callStaticMethod(jclass clazz, const char *methodName, const char *signature, ...) + \fn template <typename T> T QAndroidJniObject::callStaticMethod(jclass clazz, const char *methodName, const char *signature, ...) Calls the static method \a methodName with \a signature on \a clazz and returns the value. @@ -547,7 +547,7 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn void QAndroidJniObject::setField(const char *fieldName, T value) + \fn template <typename T> void QAndroidJniObject::setField(const char *fieldName, T value) Sets the value of \a fieldName to \a value. @@ -562,7 +562,7 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn void QAndroidJniObject::setField(const char *fieldName, const char *signature, T value) + \fn template <typename T> void QAndroidJniObject::setField(const char *fieldName, const char *signature, T value) Sets the value of \a fieldName with \a signature to \a value. @@ -574,25 +574,25 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn void QAndroidJniObject::setStaticField(const char *className, const char *fieldName, T value) + \fn template <typename T> void QAndroidJniObject::setStaticField(const char *className, const char *fieldName, T value) Sets the value of the static field \a fieldName in class \a className to \a value. */ /*! - \fn void QAndroidJniObject::setStaticField(const char *className, const char *fieldName, const char *signature, T value); + \fn template <typename T> void QAndroidJniObject::setStaticField(const char *className, const char *fieldName, const char *signature, T value); Sets the static field with \a fieldName and \a signature to \a value on class \a className. */ /*! - \fn void QAndroidJniObject::setStaticField(jclass clazz, const char *fieldName, T value) + \fn template <typename T> void QAndroidJniObject::setStaticField(jclass clazz, const char *fieldName, T value) Sets the static field \a fieldName of the class \a clazz to \a value. */ /*! - \fn void QAndroidJniObject::setStaticField(jclass clazz, const char *fieldName, const char *signature, T value); + \fn template <typename T> void QAndroidJniObject::setStaticField(jclass clazz, const char *fieldName, const char *signature, T value); Sets the static field with \a fieldName and \a signature to \a value on class \a clazz. */ @@ -626,7 +626,7 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn T QAndroidJniObject::object() const + \fn template <typename T> T QAndroidJniObject::object() const Returns the object held by the QAndroidJniObject as type T. @@ -650,7 +650,7 @@ QAndroidJniObject::~QAndroidJniObject() */ /*! - \fn QAndroidJniObject &QAndroidJniObject::operator=(T object) + \fn template <typename T> QAndroidJniObject &QAndroidJniObject::operator=(T object) Replace the current object with \a object. The old Java object will be released. */ |