summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@nokia.com>2010-10-11 13:14:56 (GMT)
committerJerome Pasion <jerome.pasion@nokia.com>2010-10-11 13:14:56 (GMT)
commit062b8cfa9b1ece569fe2a8ae18230c862ca6f857 (patch)
tree9e6386004b3f43b683e7ef5661b6ba9b49246f66 /src/gui
parentc4876f7b430246d4158528392a7a6f58bb87b23e (diff)
downloadQt-062b8cfa9b1ece569fe2a8ae18230c862ca6f857.zip
Qt-062b8cfa9b1ece569fe2a8ae18230c862ca6f857.tar.gz
Qt-062b8cfa9b1ece569fe2a8ae18230c862ca6f857.tar.bz2
Moved the property documentation to its proper location.
Task-number: QTBUG-14351 Reviewed-by: David Boddie
Diffstat (limited to 'src/gui')
-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.
+
*/
/*!