summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-02-02 10:06:59 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-02-02 10:06:59 (GMT)
commite8b6c949c006393ab690aa3e890cd48defc97b77 (patch)
tree94c98afeabd4e4f064a69aa21feb16418246ad68 /src
parent787824cb4add4d45a0e90fd736a54e75fa048475 (diff)
downloadQt-e8b6c949c006393ab690aa3e890cd48defc97b77.zip
Qt-e8b6c949c006393ab690aa3e890cd48defc97b77.tar.gz
Qt-e8b6c949c006393ab690aa3e890cd48defc97b77.tar.bz2
Document that QModelIndex::child does not work for the root item
Reviewed-by: Thierry
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qabstractitemmodel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/kernel/qabstractitemmodel.cpp b/src/corelib/kernel/qabstractitemmodel.cpp
index dbf422e..36e4af9 100644
--- a/src/corelib/kernel/qabstractitemmodel.cpp
+++ b/src/corelib/kernel/qabstractitemmodel.cpp
@@ -1006,6 +1006,9 @@ void QAbstractItemModelPrivate::columnsRemoved(const QModelIndex &parent,
Returns the child of the model index that is stored in the given \a row and
\a column.
+ \note This function does not work for an invalid model index which is often
+ used as the root index.
+
\sa parent(), sibling()
*/