Update whatsnew doc with JavaScript improvements
authorChris Adams <christopher.adams@nokia.com>
Wed, 7 Dec 2011 06:57:34 +0000 (16:57 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 8 Dec 2011 00:44:19 +0000 (01:44 +0100)
Several JavaScript integration improvements were made recently:
    - sequence support
    - "var" properties
    - improved scarce resource support

Change-Id: Id9f47d14c961397d970e306eac2bec5d3e55cab3
Reviewed-by: Martin Jones <martin.jones@nokia.com>
doc/src/declarative/whatsnew.qdoc

index f723429..622566c 100644 (file)
@@ -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<int>, QList<qreal>, QList<bool>, QList<QUrl>, QList<QString> 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: