aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidextras/jni
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@digia.com>2014-02-13 11:43:41 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-13 12:39:12 +0100
commit7657bc4b60153f775737c2e5a7b3b83419265c96 (patch)
tree9da5204ce365554ef889bd5dce42089fd1f8b90e /src/androidextras/jni
parentaf130d3047322dc3889dc09970905cbdb40c86f4 (diff)
Add non-template version of QAndroidJniObject::object()
In many cases we just want the jobject, this removes the need to add the template type. Change-Id: Iac5d8eab2b784908201baa8a05b126b4e7e5c86f Reviewed-by: BogDan Vatra <bogdan@kde.org>
Diffstat (limited to 'src/androidextras/jni')
-rw-r--r--src/androidextras/jni/qandroidjniobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/androidextras/jni/qandroidjniobject.h b/src/androidextras/jni/qandroidjniobject.h
index 6098f8c..a1eb4fd 100644
--- a/src/androidextras/jni/qandroidjniobject.h
+++ b/src/androidextras/jni/qandroidjniobject.h
@@ -64,6 +64,7 @@ public:
template <typename T>
inline T object() const { return static_cast<T>(javaObject()); }
+ inline jobject object() const { return javaObject(); }
template <typename T>
T callMethod(const char *methodName) const;