summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsgridlayout.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2010-11-26 02:57:58 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-11-26 02:57:58 (GMT)
commite07f3aebda9892dcb7c21b7b867dac27e51fd039 (patch)
treef2d77c02953cccdabdb93bf3644f86753b361a50 /src/gui/graphicsview/qgraphicsgridlayout.cpp
parent869285037c28afef45b368d30917617dabe61559 (diff)
parent4602d75963a415d3ebe20a807aed7284b714790e (diff)
downloadQt-e07f3aebda9892dcb7c21b7b867dac27e51fd039.zip
Qt-e07f3aebda9892dcb7c21b7b867dac27e51fd039.tar.gz
Qt-e07f3aebda9892dcb7c21b7b867dac27e51fd039.tar.bz2
Merge remote branch 'qt/master'
Conflicts: tools/qdoc3/test/qdeclarative.qdocconf tools/qdoc3/test/qt-build-docs_ja_JP.qdocconf tools/qdoc3/test/qt.qdocconf tools/qdoc3/test/qt_ja_JP.qdocconf
Diffstat (limited to 'src/gui/graphicsview/qgraphicsgridlayout.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsgridlayout.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsgridlayout.cpp b/src/gui/graphicsview/qgraphicsgridlayout.cpp
index 4104834..477aea3 100644
--- a/src/gui/graphicsview/qgraphicsgridlayout.cpp
+++ b/src/gui/graphicsview/qgraphicsgridlayout.cpp
@@ -64,6 +64,17 @@
removeAt() will remove an item from the layout, without
destroying it.
+ \section1 Size Hints and Size Policies in QGraphicsGridLayout
+
+ QGraphicsGridLayout respects each item's size hints and size policies,
+ and when a cell in the grid has more space than the items can fill, each item
+ is arranged according to the layout's alignment for that item. You can set
+ an alignment for each item by calling setAlignment(), and check the
+ alignment for any item by calling alignment(). You can also set the alignment
+ for an entire row or column by calling setRowAlignment() and setColumnAlignment()
+ respectively. By default, items are aligned to the top left.
+
+
\sa QGraphicsLinearLayout, QGraphicsWidget
*/