diff options
author | Glenn Watson <glenn.watson@nokia.com> | 2011-08-16 11:48:14 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-18 00:24:09 +0200 |
commit | 74f3a67fe80fecf7ba2fd76e1758b6c0f68ce918 (patch) | |
tree | 1f50ac2696414113387da29de3213c9ed494ec68 /doc/src | |
parent | dc5644758a2cdbe67111e3471488b89b1ddddd8c (diff) |
Add attached properties to the positioners.
Added an attached property type to the base positioner class.
This allows items within a positioner (Row, Column, Grid, Flow) to
determine their index inside the positioner, as well as whether
they are the first or last items. Non-visible items are ignored,
as in the positioner layout objects themselves. It may be useful
to expand this in the future to contain more information specific
to the positioner, for example row/column for Grid.
Task-number: QTBUG-19211
Change-Id: I10a8c9ca5528dd12811125cae8a9b4d2e3747972
Reviewed-on: http://codereview.qt.nokia.com/2983
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/declarative/whatsnew.qdoc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/src/declarative/whatsnew.qdoc b/doc/src/declarative/whatsnew.qdoc index 3707d41cd9..9bac55efe9 100644 --- a/doc/src/declarative/whatsnew.qdoc +++ b/doc/src/declarative/whatsnew.qdoc @@ -54,6 +54,9 @@ of the properties was changed. Grid now has rowSpacing and columnSpacing properties. +Positioner now has an attached property that can be used to determine a subitem's location within a +container such as Column or Row. + \section2 QtQuick 1 is now a separate library and module Writing C++ applications using QtQuick 1 specific API, i.e. QDeclarativeView or QDeclarativeItem |