Clarified documentation for QStandardItem::parent()
authorMarkku Heikkila <markku.heikkila@digia.com>
Tue, 26 Jun 2012 10:05:17 +0000 (13:05 +0300)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jun 2012 20:38:23 +0000 (22:38 +0200)
Task-number: QTBUG-18785

Change-Id: I91ee8c3dc10c1484376a17e3f13794038d4a648f
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
src/widgets/itemviews/qstandarditemmodel.cpp

index 17a7341..45ffa24 100644 (file)
@@ -782,8 +782,10 @@ QStandardItem::~QStandardItem()
 
 /*!
   Returns the item's parent item, or 0 if the item has no parent.
+  \note For toplevel items parent() returns 0. To receive toplevel
+  item's parent use QStandardItemModel::invisibleRootItem() instead.
 
-  \sa child()
+  \sa child(), QStandardItemModel::invisibleRootItem()
 */
 QStandardItem *QStandardItem::parent() const
 {