Commit 47660886 authored by Volker Krause's avatar Volker Krause
Browse files

Allow assigning arrays to properties

parent 67305c78
......@@ -7,6 +7,7 @@
#ifndef KANDROIDEXTRAS_JNIPROPERTIES_H
#define KANDROIDEXTRAS_JNIPROPERTIES_H
#include "jniargument.h"
#include "jniobject.h"
#include "jnisignature.h"
#include "jnitypes.h"
......@@ -96,6 +97,11 @@ public:
return Jni::Object<PropType>(get());
}
inline Property& operator=(typename Internal::argument<PropType>::type value)
{
this->handle().setField(Jni::typeName<NameHolder>(), Jni::signature<PropType>(), Internal::argument<PropType>::toCallArgument(value));
return *this;
}
inline Property& operator=(const QAndroidJniObject &value)
{
this->handle().setField(Jni::typeName<NameHolder>(), Jni::signature<PropType>(), value.object());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment