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

Add additional QAndroidJniObject constructors

Makes this behave similar to the real one regarding ctor overload
resolution.
parent e56fe931
......@@ -33,6 +33,13 @@ QAndroidJniObject::QAndroidJniObject(const char* className, const char* signatur
addToProtocol(QLatin1String("ctor: ") + QLatin1String(className) + QLatin1Char(' ') + QLatin1String(signature));
}
QAndroidJniObject::QAndroidJniObject(jobject object)
: d(new QAndroidJniObjectPrivate)
{
Q_UNUSED(object);
addToProtocol(QLatin1String("ctor: o"));
}
QAndroidJniObject::QAndroidJniObject(const QAndroidJniObject&) = default;
QAndroidJniObject & QAndroidJniObject::operator=(const QAndroidJniObject&) = default;
QAndroidJniObject::~QAndroidJniObject() = default;
......
......@@ -44,6 +44,8 @@ public:
QAndroidJniObject(const char *className);
QAndroidJniObject(const char *className, const char *signature, ...);
QAndroidJniObject(jclass, const char *signature, ...);
QAndroidJniObject(jobject object);
bool isValid() const { return true; }
......
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