summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-10-14 12:21:07 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-10-14 12:21:07 (GMT)
commit6fa7d094f5250c8f8ceb77453280c79b2d227fad (patch)
treebc7bc4486962bb4212c4937fa60ee14f43284f2d /src/gui/graphicsview
parent305a764f1db228a49a94a86fabbb5d6b3aa3f8c4 (diff)
parentf103ad276181090da8c70bd29f4474ea7657e03f (diff)
downloadQt-6fa7d094f5250c8f8ceb77453280c79b2d227fad.zip
Qt-6fa7d094f5250c8f8ceb77453280c79b2d227fad.tar.gz
Qt-6fa7d094f5250c8f8ceb77453280c79b2d227fad.tar.bz2
Merge commit 'doc-team/4.7' into 4.7
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicswidget.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp
index 1bfe266..4a733be 100644
--- a/src/gui/graphicsview/qgraphicswidget.cpp
+++ b/src/gui/graphicsview/qgraphicswidget.cpp
@@ -750,6 +750,22 @@ QSizeF QGraphicsWidget::sizeHint(Qt::SizeHint which, const QSizeF &constraint) c
/*!
\property QGraphicsWidget::layout
\brief The layout of the widget
+
+ Any existing layout manager is deleted before the new layout is assigned. If
+ \a layout is 0, the widget is left without a layout. Existing subwidgets'
+ geometries will remain unaffected.
+
+ QGraphicsWidget takes ownership of \a layout.
+
+ All widgets that are currently managed by \a layout or all of its
+ sublayouts, are automatically reparented to this item. The layout is then
+ invalidated, and the child widget geometries are adjusted according to
+ this item's geometry() and contentsMargins(). Children who are not
+ explicitly managed by \a layout remain unaffected by the layout after
+ it has been assigned to this widget.
+
+ If no layout is currently managing this widget, layout() will return 0.
+
*/
/*!