diff options
author | David Boddie <dboddie@trolltech.com> | 2010-09-01 10:32:07 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-09-01 10:32:07 (GMT) |
commit | 2e8419e43ce4d5be64bddf1b5b5f5ea9e28c55de (patch) | |
tree | 3589d83933380b053bbdadda4c0135e8516e4af2 /src/declarative | |
parent | 3ca305cf25033477b73121aa6622f8c9115285ec (diff) | |
download | Qt-2e8419e43ce4d5be64bddf1b5b5f5ea9e28c55de.zip Qt-2e8419e43ce4d5be64bddf1b5b5f5ea9e28c55de.tar.gz Qt-2e8419e43ce4d5be64bddf1b5b5f5ea9e28c55de.tar.bz2 |
Doc: More work on QML documentation and snippets.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativepositioners.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepositioners.cpp b/src/declarative/graphicsitems/qdeclarativepositioners.cpp index b653282..149e822 100644 --- a/src/declarative/graphicsitems/qdeclarativepositioners.cpp +++ b/src/declarative/graphicsitems/qdeclarativepositioners.cpp @@ -649,13 +649,14 @@ void QDeclarativeRow::reportConflictingAnchors() The Grid item positions its child items so that they are aligned in a grid and are not overlapping. + The grid positioner calculates a grid of rectangular cells of sufficient + size to hold all items, placing the items in the cells, from left to right + and top to bottom. Each item is positioned in the top-left corner of its + cell with position (0, 0). + A Grid defaults to four columns, and as many rows as are necessary to fit all child items. The number of rows and columns can be constrained - by setting the \l rows and \l columns properties. The grid positioner - calculates a grid of rectangular cells of sufficient size to hold all - items, placing the items in the cells, from left to right and top to - bottom. Each item is positioned in the top-left corner of its cell - with position (0, 0). + by setting the \l rows and \l columns properties. Spacing can be added between child items by setting the \l spacing property. The amount of spacing applied will be the same in the |