aboutsummaryrefslogtreecommitdiffstats
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/auto/qandroidjniobject/tst_qandroidjniobject.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qandroidjniobject/tst_qandroidjniobject.cpp b/tests/auto/qandroidjniobject/tst_qandroidjniobject.cpp
index e0f4201..1353660 100644
--- a/tests/auto/qandroidjniobject/tst_qandroidjniobject.cpp
+++ b/tests/auto/qandroidjniobject/tst_qandroidjniobject.cpp
@@ -199,9 +199,11 @@ void tst_QAndroidJniObject::compareOperatorTests()
QString str("hello!");
QAndroidJniObject stringObject = QAndroidJniObject::fromString(str);
+ jobject obj = stringObject.object();
jobject jobj = stringObject.object<jobject>();
jstring jsobj = stringObject.object<jstring>();
+ QVERIFY(obj == stringObject);
QVERIFY(jobj == stringObject);
QVERIFY(stringObject == jobj);
QVERIFY(jsobj == stringObject);