aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/v8/qjsvalue_impl_p.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-01-17 15:23:01 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-02 08:10:24 +0100
commit54c51c89e21800b3a455127b3c19a3c5b30ee319 (patch)
tree9781a998567abf4513919cc08e928a3df03eecbf /src/declarative/qml/v8/qjsvalue_impl_p.h
parented84a6ee63ac7a53f37efad3eb4a7e4eaa047242 (diff)
Remove QJSValue::propertyFlags() function
Rationale: The API is incomplete. There is no way to set/update the flags; adding a third (optional) argument to setProperty() is ugly. If necessary, a QJSPropertyDescriptor API should be added, to enable complete setting/querying of properties. The flags were moved to QJSValuePrivate, and the propertyFlags() implementation kept, because there is one place the read-only flag is checked internally (in qv8typewrapper). Task-number: QTBUG-23604 Change-Id: I089dce28dbda428662aac7c8d1536987fe6d855c Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qjsvalue_impl_p.h')
-rw-r--r--src/declarative/qml/v8/qjsvalue_impl_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/qml/v8/qjsvalue_impl_p.h b/src/declarative/qml/v8/qjsvalue_impl_p.h
index b4e66ed093..69ec70beed 100644
--- a/src/declarative/qml/v8/qjsvalue_impl_p.h
+++ b/src/declarative/qml/v8/qjsvalue_impl_p.h
@@ -714,19 +714,19 @@ inline bool QJSValuePrivate::hasOwnProperty(const QString &name) const
return self->HasOwnProperty(QJSConverter::toString(name));
}
-inline QJSValue::PropertyFlags QJSValuePrivate::propertyFlags(const QString& name) const
+inline QJSValuePrivate::PropertyFlags QJSValuePrivate::propertyFlags(const QString& name) const
{
if (!isObject())
- return QJSValue::PropertyFlags(0);
+ return QJSValuePrivate::PropertyFlags(0);
v8::HandleScope handleScope;
return engine()->getPropertyFlags(v8::Handle<v8::Object>::Cast(m_value), QJSConverter::toString(name));
}
-inline QJSValue::PropertyFlags QJSValuePrivate::propertyFlags(v8::Handle<v8::String> name) const
+inline QJSValuePrivate::PropertyFlags QJSValuePrivate::propertyFlags(v8::Handle<v8::String> name) const
{
if (!isObject())
- return QJSValue::PropertyFlags(0);
+ return QJSValuePrivate::PropertyFlags(0);
v8::HandleScope handleScope;
return engine()->getPropertyFlags(v8::Handle<v8::Object>::Cast(m_value), name);