diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2012-01-18 10:00:02 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-20 23:35:18 +0100 |
commit | 23805ae47898a1ae4b5c8d8bb30b8b69d2fc435a (patch) | |
tree | 487d8a346511974e210393a416dbeb95880387f7 /src/declarative/qml/v8/qjsvalue.h | |
parent | 45a83b43ea431a27a7ea05e7e621013dfcfe409a (diff) |
Add QJSValue::deleteProperty() function
This makes it possible to delete a property without relying on passing
a QJSValue of invalid type to setProperty() (the invalid type is going
to be removed).
Task-number: QTBUG-23604
Change-Id: I653b3349050ad1aac1cf6ccc8547c753abbb9f1d
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qjsvalue.h')
-rw-r--r-- | src/declarative/qml/v8/qjsvalue.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/v8/qjsvalue.h b/src/declarative/qml/v8/qjsvalue.h index 756081d842..280f44e924 100644 --- a/src/declarative/qml/v8/qjsvalue.h +++ b/src/declarative/qml/v8/qjsvalue.h @@ -134,6 +134,8 @@ public: QJSValue property(quint32 arrayIndex) const; void setProperty(quint32 arrayIndex, const QJSValue &value); + bool deleteProperty(const QString &name); + QJSValue::PropertyFlags propertyFlags(const QString &name) const; QJSValue call(const QJSValue &thisObject = QJSValue(), |