diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-04-10 08:56:08 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-04-16 14:29:55 +0200 |
commit | 16b30313ad6d9421a75c228dcacf5e2f9ded29ed (patch) | |
tree | 9c89e4b8019447bc747bfe7b426abc0d88a591f7 /src/qml/jsapi/qjsengine.h | |
parent | 9cd1e7902ce882a54e369556068f2707090df658 (diff) |
Rework qmljsrootgen
This way it actually generates interesting data about the JavaScript
types, for example the functions of the String prototype. Add a helper
method to create a symbol to QJSEngine. This should be generally useful.
Change-Id: I6c7b253b9d6cdb61602ceeae0955aed8d942c139
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsapi/qjsengine.h')
-rw-r--r-- | src/qml/jsapi/qjsengine.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsapi/qjsengine.h b/src/qml/jsapi/qjsengine.h index 33316d3db0..ac79b30ebc 100644 --- a/src/qml/jsapi/qjsengine.h +++ b/src/qml/jsapi/qjsengine.h @@ -73,6 +73,7 @@ public: QJSValue importModule(const QString &fileName); QJSValue newObject(); + QJSValue newSymbol(const QString &name); QJSValue newArray(uint length = 0); QJSValue newQObject(QObject *object); |