diff options
Diffstat (limited to 'tests/auto/declarative/shared/debugutil.cpp')
-rw-r--r-- | tests/auto/declarative/shared/debugutil.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/shared/debugutil.cpp b/tests/auto/declarative/shared/debugutil.cpp index 8f6fdef..b8245b5 100644 --- a/tests/auto/declarative/shared/debugutil.cpp +++ b/tests/auto/declarative/shared/debugutil.cpp @@ -157,7 +157,8 @@ int QmlDebugTest::runTests(QmlTestFactory *factory, const QList<QByteArray> &qml QmlEngine engine; // blocks until client connects foreach (const QByteArray &code, qml) { - QmlComponent c(&engine, code, QUrl("file://")); + QmlComponent c(&engine); + c.setData(code, QUrl("file://")); Q_ASSERT(c.isReady()); // fails if bad syntax data.items << qobject_cast<QmlGraphicsItem*>(c.create()); } |