summaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4object_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-04-27 11:40:35 +0200
committerLars Knoll <lars.knoll@qt.io>2018-05-02 14:20:38 +0000
commit481f69ef2b507454e15a2354a7b6e85d671ee793 (patch)
tree65eda4d057f5eb05348a206696ee4b7c63badf67 /src/qml/jsruntime/qv4object_p.h
parenta6eb09fa2015a6cff1c8344e5784235d6292098f (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_p.h')
-rw-r--r--src/qml/jsruntime/qv4object_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h
index 44ad35b44b..93cc3a1e4b 100644
--- a/src/qml/jsruntime/qv4object_p.h
+++ b/src/qml/jsruntime/qv4object_p.h
@@ -277,7 +277,7 @@ struct Q_QML_EXPORT Object: Managed {
void defineDefaultProperty(StringOrSymbol *name, const Value &value, PropertyAttributes attributes = Attr_Data|Attr_NotEnumerable) {
insertMember(name, value, attributes);
}
- void defineDefaultProperty(const QString &name, const Value &value);
+ void defineDefaultProperty(const QString &name, const Value &value, PropertyAttributes attributes = Attr_Data|Attr_NotEnumerable);
void defineDefaultProperty(const QString &name, jsCallFunction code,
int argumentCount = 0, PropertyAttributes attributes = Attr_Data|Attr_NotEnumerable);
void defineDefaultProperty(StringOrSymbol *name, jsCallFunction code,