diff options
author | Liang Qi <liang.qi@qt.io> | 2016-05-20 11:01:33 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-05-20 09:28:49 +0000 |
commit | 6fe784b9696fc19eb8f2ba24f187d2cea4434c53 (patch) | |
tree | 3bc7e155fc11481748d27e87dadb81e79fbabf2b /src/quicktemplates2/qquickstackview_p.cpp | |
parent | 4ecf0a7da5acad1cd49b53e15c5716770b5e3c2b (diff) |
QQuickStackView: fix build
error: no matching function for call to 'QQmlComponentPrivate::initializeObjectWithInitialProperties(QV4::ScopedValue&, QQuickItem*&)'
Change-Id: Ied1bd7b73b60c69c73e42b82209f10f2448ce7b0
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/quicktemplates2/qquickstackview_p.cpp')
-rw-r--r-- | src/quicktemplates2/qquickstackview_p.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickstackview_p.cpp b/src/quicktemplates2/qquickstackview_p.cpp index ca2f5661..9e09c83e 100644 --- a/src/quicktemplates2/qquickstackview_p.cpp +++ b/src/quicktemplates2/qquickstackview_p.cpp @@ -183,7 +183,8 @@ void QQuickStackElement::initialize() Q_ASSERT(v4); QV4::Scope scope(v4); QV4::ScopedValue ipv(scope, properties.value()); - d->initializeObjectWithInitialProperties(ipv, item); + QV4::Scoped<QV4::QmlContext> qmlContext(scope, qmlCallingContext.value()); + d->initializeObjectWithInitialProperties(qmlContext, ipv, item); properties.clear(); } @@ -282,6 +283,7 @@ static bool initProperties(QQuickStackElement *element, const QV4::Value &props, if (!wrapper) { QV4::ExecutionEngine *v4 = args->v4engine(); element->properties.set(v4, props); + element->qmlCallingContext.set(v4, v4->qmlContext()); return true; } } |