diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-09-10 09:11:13 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-09-25 14:26:43 +0000 |
commit | 9d58167d352b2f860f473fd74b63541d7659b811 (patch) | |
tree | 6f69490043ce13db25130af2d75600f6fe1ea48d /src/qml/qml/qqmlproxymetaobject.cpp | |
parent | 0220163ca27c3f97e623591a231473c42b907012 (diff) |
Add extension API to QJSEngine
This allows users in a JavaScript-only environment to install extensions including:
- Translation functions (qsTr(), etc.)
- The console object (console.log(), print(), etc.)
- Garbage collection functions (gc())
This deprecates installTranslatorFunctions(). This API results in less
clutter in the API, as we'd otherwise need to have several functions
for each type of extension.
[ChangeLog][QJSEngine] Introduced an extension API that allows
installing various function and object extensions (qsTr(),
console.log(), etc.) to QJSEngine.
[ChangeLog][QJSEngine] installTranslatorFunctions() was deprecated in
favor of the new extension API (see installExtensions()).
Change-Id: I4d6eb2097c3eda6810e967b2e8f6441c28c91a16
Task-number: QTBUG-40772
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlproxymetaobject.cpp')
0 files changed, 0 insertions, 0 deletions