summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-12-10 09:26:06 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-12-10 09:31:31 (GMT)
commitba9ea2b97bdd2329cb479bb7a6aef1bc7cee82d1 (patch)
tree910356734e3001d0ab576ebe531a19129e19fd8f /src/gui
parent2705480b5cd740eee3ed684a26508b0497b00477 (diff)
downloadQt-ba9ea2b97bdd2329cb479bb7a6aef1bc7cee82d1.zip
Qt-ba9ea2b97bdd2329cb479bb7a6aef1bc7cee82d1.tar.gz
Qt-ba9ea2b97bdd2329cb479bb7a6aef1bc7cee82d1.tar.bz2
Doc: The ctor of of QGraphicsLayout might install the layout.
Task-number: QTBUG-6447
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/graphicsview/qgraphicslayout.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicslayout.cpp b/src/gui/graphicsview/qgraphicslayout.cpp
index 2e9a30c..1e426c8 100644
--- a/src/gui/graphicsview/qgraphicslayout.cpp
+++ b/src/gui/graphicsview/qgraphicslayout.cpp
@@ -148,6 +148,10 @@ QT_BEGIN_NAMESPACE
\a parent is passed to QGraphicsLayoutItem's constructor and the
QGraphicsLayoutItem's isLayout argument is set to \e true.
+
+ If \a parent is a QGraphicsWidget the layout will be installed
+ on that widget. (Note that installing a layout will delete the old one
+ installed.)
*/
QGraphicsLayout::QGraphicsLayout(QGraphicsLayoutItem *parent)
: QGraphicsLayoutItem(*new QGraphicsLayoutPrivate)