diff options
author | Chris Adams <christopher.adams@nokia.com> | 2012-07-26 10:51:50 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-27 06:09:11 +0200 |
commit | 0408dcd6a9d45e110610c6ed14987189d4e16c90 (patch) | |
tree | fee551951507b599a3c96093cecbf8cb795774c4 /src/qml/doc | |
parent | 54c2d685512fdeac2d5b6eeaf25ed738c4fd99ba (diff) |
Update whatsnew documentation with value-type improvements
Value types are now supported as property types. QtQuick provides
several new value types. Subproperty modification write-back
semantics have been fixed for variant properties.
Change-Id: Ic47a8401178e6f8bbd5037b6929d7afd5e3cffe6
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'src/qml/doc')
-rw-r--r-- | src/qml/doc/src/whatsnew.qdoc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qml/doc/src/whatsnew.qdoc b/src/qml/doc/src/whatsnew.qdoc index d66d78d5ec..253c89c34f 100644 --- a/src/qml/doc/src/whatsnew.qdoc +++ b/src/qml/doc/src/whatsnew.qdoc @@ -71,8 +71,13 @@ has now been replaced by the new QtQml and QtQuick C++ modules. See the \li QML properties of type \l var and \l variant can now hold pixmaps. See \l {Scarce Resources in JavaScript} for more information. \li Value type improvements: \list - \li QColor is now a value type. The red, green, blue and alpha channels of a \l color property can be accessed via \c r, \c g, \c b and \c a properties. - \li Improved support for QVector4D, now constructible in QML via \c Qt.vector4d(). + \li QML now supports defining properties of value type basic types within QML documents. Supported types include + QSizeF, QPointF and QRectF as \c size, \c point and \c rect respectively. + \li QColor is now a value type provided by the QtQuick module. The red, green, blue and alpha channels + of a \l color property can be accessed via \c r, \c g, \c b and \c a properties. + \li Factory functions for various value types have been added to the \c Qt object exposed to QML. + Some of those functions require the QtQuick module to be imported in order to return valid values. + See the QtQuick 2.0 release notes for more information about these functions. \endlist \li Support for sequence types QList<int>, QList<qreal>, QList<bool>, QList<QUrl>, QList<QString> and QStringList has been improved. QObjects can define Q_PROPERTYs of |