aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/util
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-21 12:33:55 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-21 12:54:18 +0200
commitd8891234812898b1cab406dae9fab9f818bb1efe (patch)
tree24dfbdd53386ba7c97d4e17fb6c04c4b8c38e56a /src/qml/util
parent15db69e5066a6535532744186e11f3098800f0ba (diff)
Get rid of v8::Integer
Change-Id: I6b9ab830c4ff3cbf986dbcf7c056648b5a16a222 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/util')
-rw-r--r--src/qml/util/qqmladaptormodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/util/qqmladaptormodel.cpp b/src/qml/util/qqmladaptormodel.cpp
index a428029bad..956f591b81 100644
--- a/src/qml/util/qqmladaptormodel.cpp
+++ b/src/qml/util/qqmladaptormodel.cpp
@@ -92,7 +92,7 @@ static v8::Handle<v8::Value> get_index(v8::Handle<v8::String>, const v8::Accesso
QQmlDelegateModelItem *data = v8_resource_cast<QQmlDelegateModelItem>(info.This());
V8ASSERT_TYPE(data, "Not a valid VisualData object");
- return v8::Int32::New(data->index);
+ return QV4::Value::fromInt32(data->index);
}
template <typename T, typename M> static void setModelDataType(QMetaObjectBuilder *builder, M *metaType)
@@ -233,7 +233,7 @@ public:
v8::String::New(propertyName.constData(), propertyName.length()),
QQmlDMCachedModelData::get_property,
QQmlDMCachedModelData::set_property,
- v8::Int32::New(propertyId));
+ QV4::Value::fromInt32(propertyId));
}
}