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

Fix primitive property writes

Only the signature-less setField overload is actually available in Qt on
Android, the general one compiles but doesn't link. So extend our mock
implementation accordingly and use the working one in this case.
parent fc3f5f16
Pipeline #184532 passed with stage
in 1 minute and 23 seconds
......@@ -134,6 +134,11 @@ public:
setProperty(fieldName, QVariant::fromValue(value));
template <typename T>
void setField(const char *fieldName, T value)
setField(fieldName, KAndroidExtras::Jni::signature<T>(), value);
template <typename T, typename ...Args>
static T callStaticMethod(const char *className, const char *methodName, const char *signature, Args...)
......@@ -117,7 +117,7 @@ public:
inline Property& operator=(PropType value)
this->handle().setField(Jni::typeName<NameHolder>(), Jni::signature<PropType>(), value);
this->handle().setField(Jni::typeName<NameHolder>(), value);
return *this;
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