diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-04-17 10:09:09 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-04-17 10:32:43 +0000 |
commit | 6c2ee77275fe4d007f474f69079b9ba13a761386 (patch) | |
tree | 89168c1361f86f38e3420803e09eff92805092e0 | |
parent | f48728e61e8e1e828d0a5a1ea64e90e5a8112735 (diff) |
QQuickAbstractStackView: fix build
error: no member named 'asArrayObject' in 'QV4::Value'
Change-Id: I462cab09129916cd6d2834755751dcb3811a9df7
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r-- | src/controls/qquickstackview_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/qquickstackview_p.cpp b/src/controls/qquickstackview_p.cpp index f2dfff52..f887539f 100644 --- a/src/controls/qquickstackview_p.cpp +++ b/src/controls/qquickstackview_p.cpp @@ -264,7 +264,7 @@ QList<QQuickStackElement *> QQuickStackViewPrivate::parseElements(QQmlV4Function int argc = args->length(); for (int i = from; i < argc; ++i) { QV4::ScopedValue arg(scope, (*args)[i]); - if (QV4::ArrayObject *array = arg->asArrayObject()) { + if (QV4::ArrayObject *array = arg->as<QV4::ArrayObject>()) { int len = array->getLength(); for (int j = 0; j < len; ++j) { QV4::ScopedValue value(scope, array->getIndexed(j)); |