summaryrefslogtreecommitdiffstats
path: root/examples/itemviews
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-05-31 15:02:49 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-05-31 15:02:49 (GMT)
commitbd786961b0d65bdd1adb31eca0a050a4b9a1f39a (patch)
tree0096894fc7ed4cc12050a7a507206ed70797db16 /examples/itemviews
parentc1760352caf33390592ccf5f8eb3401e10aea143 (diff)
downloadQt-bd786961b0d65bdd1adb31eca0a050a4b9a1f39a.zip
Qt-bd786961b0d65bdd1adb31eca0a050a4b9a1f39a.tar.gz
Qt-bd786961b0d65bdd1adb31eca0a050a4b9a1f39a.tar.bz2
Doc: Fixed an off-by-one error in an example.
Reviewed-by: Trust Me Task-number: QTBUG-10854
Diffstat (limited to 'examples/itemviews')
-rw-r--r--examples/itemviews/fetchmore/filelistmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/itemviews/fetchmore/filelistmodel.cpp b/examples/itemviews/fetchmore/filelistmodel.cpp
index 05ab45e..942150e 100644
--- a/examples/itemviews/fetchmore/filelistmodel.cpp
+++ b/examples/itemviews/fetchmore/filelistmodel.cpp
@@ -92,7 +92,7 @@ void FileListModel::fetchMore(const QModelIndex & /* index */)
int remainder = fileList.size() - fileCount;
int itemsToFetch = qMin(100, remainder);
- beginInsertRows(QModelIndex(), fileCount, fileCount+itemsToFetch);
+ beginInsertRows(QModelIndex(), fileCount, fileCount+itemsToFetch-1);
fileCount += itemsToFetch;