diff options
author | Ian Walters <ian.walters@nokia.com> | 2009-05-12 00:09:23 (GMT) |
---|---|---|
committer | Ian Walters <ian.walters@nokia.com> | 2009-05-12 00:09:23 (GMT) |
commit | ee533dd0818c3bf7c940cd2d543adb1c6807dd1c (patch) | |
tree | e44bb10b0563becdbf0d37d36df22647b9f7b961 /doc/src/examples/contiguouscache.qdoc | |
parent | 142c059031f42f1f4cb64873c634e655f3b7a46d (diff) | |
download | Qt-ee533dd0818c3bf7c940cd2d543adb1c6807dd1c.zip Qt-ee533dd0818c3bf7c940cd2d543adb1c6807dd1c.tar.gz Qt-ee533dd0818c3bf7c940cd2d543adb1c6807dd1c.tar.bz2 |
Various fixes resulting from QA code review.
Some documentation fixes.
More clear handling of what is and isn't a valid indexes.
Added functions for the 'really long lived circular buffer use case'
Improved unit tests.
Diffstat (limited to 'doc/src/examples/contiguouscache.qdoc')
-rw-r--r-- | doc/src/examples/contiguouscache.qdoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/examples/contiguouscache.qdoc b/doc/src/examples/contiguouscache.qdoc index 71e7740..fbfde3f 100644 --- a/doc/src/examples/contiguouscache.qdoc +++ b/doc/src/examples/contiguouscache.qdoc @@ -61,10 +61,10 @@ simply have the following code instead. \code - while (row > m_words.lastIndex()) - m_words.append(fetchWord(m_words.lastIndex()+1); - while (row < m_words.firstIndex()) - m_words.prepend(fetchWord(m_words.firstIndex()-1); + while (row > m_rows.lastIndex()) + m_rows.append(fetchWord(m_rows.lastIndex()+1); + while (row < m_rows.firstIndex()) + m_rows.prepend(fetchWord(m_rows.firstIndex()-1); \endcode However a list will often jump rows if the scroll bar is used directly, resulting in |