diff options
Diffstat (limited to 'src/qml/qml/v8/qv8contextwrapper.cpp')
-rw-r--r-- | src/qml/qml/v8/qv8contextwrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/qml/v8/qv8contextwrapper.cpp b/src/qml/qml/v8/qv8contextwrapper.cpp index 4bb89b86f8..fe4bfb8463 100644 --- a/src/qml/qml/v8/qv8contextwrapper.cpp +++ b/src/qml/qml/v8/qv8contextwrapper.cpp @@ -270,9 +270,9 @@ v8::Handle<v8::Value> QV8ContextWrapper::Getter(v8::Handle<v8::String> property, QObject *scopeObject = resource->getScopeObject(); - QHashedV8String propertystring(property); + QHashedV4String propertystring(property->v4Value()); - if (context->imports && QV8Engine::startsWithUpper(property->v4Value().asString())) { + if (context->imports && property->v4Value().asString()->startsWithUpper()) { // Search for attached properties, enums and imported scripts QQmlTypeNameCache::Result r = context->imports->query(propertystring); @@ -393,7 +393,7 @@ v8::Handle<v8::Value> QV8ContextWrapper::Setter(v8::Handle<v8::String> property, QV8Engine *engine = resource->engine; QObject *scopeObject = resource->getScopeObject(); - QHashedV8String propertystring(property); + QHashedV4String propertystring(property->v4Value()); QV8QObjectWrapper *qobjectWrapper = engine->qobjectWrapper(); |