aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/xmllistmodel
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-30 22:27:36 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-01 09:27:35 +0200
commitbe2b623bcfa3a3781771e8d44a4f12e3725775e9 (patch)
treeb9d2f2fdabd970c2fc8d8a0be30b04339275a8ac /src/imports/xmllistmodel
parent382509a7f8753e2a11315eeb2086b27b6bc50a61 (diff)
Move QV8Engine::to/fromVariant over to a v4 based API
Change-Id: Ie44de10cbd970715345e2c428db666dc6233b39c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/imports/xmllistmodel')
-rw-r--r--src/imports/xmllistmodel/qqmlxmllistmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp
index 4d0c509b2d..668479f5ba 100644
--- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp
+++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp
@@ -926,7 +926,7 @@ QQmlV4Handle QQuickXmlListModel::get(int index) const
Object *o = v4engine->newObject();
for (int ii = 0; ii < d->roleObjects.count(); ++ii) {
Property *p = o->insertMember(v4engine->newIdentifier(d->roleObjects[ii]->name()), PropertyAttributes());
- p->value = v8engine->fromVariant(d->data.value(ii).value(index)).get()->v4Value();
+ p->value = v8engine->fromVariant(d->data.value(ii).value(index));
}
return QQmlV4Handle::fromValue(Value::fromObject(o));