diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-04-27 11:40:35 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-02 14:20:38 +0000 |
commit | 481f69ef2b507454e15a2354a7b6e85d671ee793 (patch) | |
tree | 65eda4d057f5eb05348a206696ee4b7c63badf67 /src/qml/jsruntime/qv4object.cpp | |
parent | a6eb09fa2015a6cff1c8344e5784235d6292098f (diff) |
Add attributes argument to defineDefaultProperty overload
Change-Id: I34da7966125b892a9a106b1a4ca8552abad45cdb
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4object.cpp b/src/qml/jsruntime/qv4object.cpp index a1a126a0e0..586fa1ee4b 100644 --- a/src/qml/jsruntime/qv4object.cpp +++ b/src/qml/jsruntime/qv4object.cpp @@ -148,12 +148,12 @@ bool Object::putValue(uint memberIndex, const Value &value) return true; } -void Object::defineDefaultProperty(const QString &name, const Value &value) +void Object::defineDefaultProperty(const QString &name, const Value &value, PropertyAttributes attributes) { ExecutionEngine *e = engine(); Scope scope(e); ScopedString s(scope, e->newIdentifier(name)); - defineDefaultProperty(s, value); + defineDefaultProperty(s, value, attributes); } void Object::defineDefaultProperty(const QString &name, jsCallFunction code, |