From 9128eb13040c57872e226222c9a45cad9946ed1a Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Wed, 7 Dec 2011 16:57:34 +1000 Subject: Update whatsnew doc with JavaScript improvements Several JavaScript integration improvements were made recently: - sequence support - "var" properties - improved scarce resource support Change-Id: Id9f47d14c961397d970e306eac2bec5d3e55cab3 Reviewed-by: Martin Jones --- doc/src/declarative/whatsnew.qdoc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/declarative/whatsnew.qdoc b/doc/src/declarative/whatsnew.qdoc index f7234296ed..622566ca3c 100644 --- a/doc/src/declarative/whatsnew.qdoc +++ b/doc/src/declarative/whatsnew.qdoc @@ -62,11 +62,18 @@ Arbitrary functionality may be provided in a namespace through a Module API. Se JavaScript (.js) files may now import QML modules and other JavaScript files. See \l{Importing One JavaScript File From Another} for more information. -QML properties of type \c variant can now hold pixmaps. See \l{Scarce Resources in JavaScript} for more information +A new property type "var" has been added which obsoletes the old "variant" property type. +Properties of the "var" type may hold JavaScript references. See \l{QML Basic Types} for more information. + +QML properties of type \c var and \c variant can now hold pixmaps. See \l{Scarce Resources in JavaScript} for more information QDeclarativeExpression can now be directly (and more efficiently) constructed from a QDeclarativeScriptString. +Support for certain sequence types (QList, QList, QList, QList, QList and QStringList) has been improved. +QObjects can define Q_PROPERTYs of these types which can be accessed transparently from JavaScript. See the section on +sequences in \l{Extending QML Functionalities using C++} for more information. + \section2 Canvas Item The new \l Canvas item provides a HTML5 canvas like API, with some enhancements: -- cgit v1.2.3