From 3dd45840c881e90904781169bfd546e1f58eac30 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Wed, 22 Feb 2012 12:16:50 +1000 Subject: Positioners cleanup Use qreal for positions and spacing instead of ints, and make the positionedItems list take care of filtering out invisible items. Change-Id: Icad93ad89c848e40a70bd7a9539bd810e27020df Reviewed-by: Bea Lam --- doc/src/whatsnew.qdoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/src/whatsnew.qdoc b/doc/src/whatsnew.qdoc index 34dfe21be5..88d5e91d76 100644 --- a/doc/src/whatsnew.qdoc +++ b/doc/src/whatsnew.qdoc @@ -109,7 +109,8 @@ Image has two new properties: horizontalAlignment and verticalAlignment. It also fillMode (Image.Pad) that does not transform the image. Setting Image sourceSize.width and sourceSize.height will now fit the image to the size, maintaining aspect. -Grid now has rowSpacing and columnSpacing properties. +Grid now has rowSpacing and columnSpacing properties. Spacing properties on positioners are now real numbers instead +of integers. Positioners now have attached properties that can be used to determine a subitem's location within a container such as Column or Row: Positioner.index, Positioner.isFirstItem, Positioner.isLastItem. -- cgit v1.2.3