diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-05-04 11:13:51 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-05-04 11:14:23 (GMT) |
commit | e223a450ce57a7dc627e0eac14cea019f99fe601 (patch) | |
tree | e3d4b0a5f52486995930952ff3848d76a277e2a8 /src/corelib/tools | |
parent | aa077a8bd3ee3a134629ef6ac2367b7f11593724 (diff) | |
download | Qt-e223a450ce57a7dc627e0eac14cea019f99fe601.zip Qt-e223a450ce57a7dc627e0eac14cea019f99fe601.tar.gz Qt-e223a450ce57a7dc627e0eac14cea019f99fe601.tar.bz2 |
Added comment to clearify the use of indexes.
Added a comment about the use of negative indexes.
Task-number: 249344
Rev-by: Marius Storm-Olsen
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qlistdata.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/tools/qlistdata.cpp b/src/corelib/tools/qlistdata.cpp index d7c39a7..d40b6b6 100644 --- a/src/corelib/tools/qlistdata.cpp +++ b/src/corelib/tools/qlistdata.cpp @@ -764,6 +764,10 @@ void **QListData::erase(void **xi) This function requires the value type to have an implementation of \c operator==(). + Note that QList uses 0-based indexes, just like C++ arrays. Negative + indexes are not supported with the exception of the value mentioned + above. + \sa lastIndexOf(), contains() */ @@ -780,6 +784,10 @@ void **QListData::erase(void **xi) This function requires the value type to have an implementation of \c operator==(). + Note that QList uses 0-based indexes, just like C++ arrays. Negative + indexes are not supported with the exception of the value mentioned + above. + \sa indexOf() */ |