Skip to content

Commit

Permalink
Positioners cleanup
Browse files Browse the repository at this point in the history
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 <bea.lam@nokia.com>
  • Loading branch information
Alan Alpert authored and Qt by Nokia committed Feb 22, 2012
1 parent 136f235 commit 3dd4584
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 107 deletions.
3 changes: 2 additions & 1 deletion doc/src/whatsnew.qdoc
Expand Up @@ -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.
Expand Down

0 comments on commit 3dd4584

Please sign in to comment.