From 9b23e36bbdd44f443cff607b524b23fe66ffd9e1 Mon Sep 17 00:00:00 2001 From: Nico Vertriest Date: Mon, 23 Nov 2015 13:04:49 +0100 Subject: Doc: improvement in if condition about inserting item in list Task-number: QTBUG-41708 Change-Id: Ibbb115a8ad81f7fba0ce162ae131d4843b19c188 Reviewed-by: Martin Smith --- src/corelib/tools/qlist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/corelib') diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp index 8ed0da7ca0..5710f3925b 100644 --- a/src/corelib/tools/qlist.cpp +++ b/src/corelib/tools/qlist.cpp @@ -820,8 +820,8 @@ void **QListData::erase(void **xi) /*! \fn void QList::insert(int i, const T &value) - Inserts \a value at index position \a i in the list. If \a i - is 0, the value is prepended to the list. If \a i is size(), the + Inserts \a value at index position \a i in the list. If \a i <= 0, + the value is prepended to the list. If \a i >= size(), the value is appended to the list. Example: -- cgit v1.2.3