diff options
Diffstat (limited to 'tests/auto/qml/qqmlopenmetaobject/tst_qqmlopenmetaobject.cpp')
-rw-r--r-- | tests/auto/qml/qqmlopenmetaobject/tst_qqmlopenmetaobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlopenmetaobject/tst_qqmlopenmetaobject.cpp b/tests/auto/qml/qqmlopenmetaobject/tst_qqmlopenmetaobject.cpp index 44ce1d6987..6265c6ca67 100644 --- a/tests/auto/qml/qqmlopenmetaobject/tst_qqmlopenmetaobject.cpp +++ b/tests/auto/qml/qqmlopenmetaobject/tst_qqmlopenmetaobject.cpp @@ -52,7 +52,7 @@ void tst_qqmlopenmetaobject::createProperties() { QQmlEngine engine; CustomObject object; - const QQmlRefPointer<QQmlOpenMetaObjectType> mot = new QQmlOpenMetaObjectType(object.metaObject(), &engine); + const QQmlRefPointer<QQmlOpenMetaObjectType> mot = new QQmlOpenMetaObjectType(object.metaObject()); QQmlOpenMetaObject *const mo = new QQmlOpenMetaObject(&object, mot.data()); mo->setCached(true); mot->createProperty("customProperty"); |