aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmllistmodel.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-08 15:56:03 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-08 19:55:58 +0200
commit2b0d3bf812273e762e7aa27a58909ade59590c0f (patch)
tree6475e09cfa3512a6bff77dd0947cd664a8b47ea0 /src/qml/types/qqmllistmodel.cpp
parent2b01b808e75041005bca903cf50f528716e285e3 (diff)
Remove v8 dependencies from QQmlV4Handle
Change-Id: I87d2183738ec7cfeea846a28f2b9aed79a233f68 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/types/qqmllistmodel.cpp')
-rw-r--r--src/qml/types/qqmllistmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/types/qqmllistmodel.cpp b/src/qml/types/qqmllistmodel.cpp
index eb52179c94..23a41d426b 100644
--- a/src/qml/types/qqmllistmodel.cpp
+++ b/src/qml/types/qqmllistmodel.cpp
@@ -2136,7 +2136,7 @@ QQmlV4Handle QQmlListModel::get(int index) const
}
}
- return QQmlV4Handle::fromV8Handle(result);
+ return QQmlV4Handle(result->v4Value());
}
/*!
@@ -2157,7 +2157,7 @@ QQmlV4Handle QQmlListModel::get(int index) const
*/
void QQmlListModel::set(int index, const QQmlV4Handle &handle)
{
- v8::Handle<v8::Value> valuemap = handle.toV8Handle();
+ v8::Handle<v8::Value> valuemap = handle.toValue();
if (!valuemap->IsObject() || valuemap->IsArray()) {
qmlInfo(this) << tr("set: value is not an object");