From 74f3a67fe80fecf7ba2fd76e1758b6c0f68ce918 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Tue, 16 Aug 2011 11:48:14 +1000 Subject: 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 Reviewed-by: Alan Alpert --- doc/src/declarative/whatsnew.qdoc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/src') 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 -- cgit v1.2.3