aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2011-12-07 16:57:34 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-08 01:44:19 +0100
commit9128eb13040c57872e226222c9a45cad9946ed1a (patch)
treef897b4054f86ba64fecc8b7de0c359b13a09725c /doc
parent0b611725b095760f880d5970908989d7ea26f60a (diff)
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 <martin.jones@nokia.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/whatsnew.qdoc9
1 files changed, 8 insertions, 1 deletions
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<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: