summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2009-10-23 10:09:05 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2009-10-23 10:09:05 (GMT)
commit8a15a24a8aa7faeb2c02944de6f97105f0424906 (patch)
tree6e10bd3a556b4ed67ff6bf909ec97f244cc6743f /src/gui
parent0f6909e8e1be93d16798d31f18c4da2b0b5a084c (diff)
downloadQt-8a15a24a8aa7faeb2c02944de6f97105f0424906.zip
Qt-8a15a24a8aa7faeb2c02944de6f97105f0424906.tar.gz
Qt-8a15a24a8aa7faeb2c02944de6f97105f0424906.tar.bz2
doc: Relationship of QGraphicsObject::parent && QObject::parent
QGraphicsObject::parent is actually about the QGraphicsItem hierarchy, not the QObject hierarchy. This is similar to QGraphicsWidget, where 'QObject::parent() should always return 0'. Maybe the explanation in QGraphicsWidget class documentation on this topic should be merged into QGraphicsObject, too? Reviewed-by: Andreas Aardal Hanssen
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index 97979e5..f892bb4 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -1228,7 +1228,7 @@ void QGraphicsItemCache::purge()
}
/*!
- Constructs a QGraphicsItem with the given \a parent.
+ Constructs a QGraphicsItem, passing \a item to QGraphicsItem's constructor. It does not modify \fn QObject::parent().
If \a parent is 0, you can add the item to a scene by calling
QGraphicsScene::addItem(). The item will then become a top-level item.
@@ -7318,7 +7318,7 @@ void QGraphicsObject::grabGesture(Qt::GestureType gesture, Qt::GestureContext co
/*!
\property QGraphicsObject::parent
- \brief the parent of the item
+ \brief the parent of the item. It is independent from \fn QObject::parent.
\sa QGraphicsItem::setParentItem(), QGraphicsItem::parentObject()
*/