diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-05-05 23:46:49 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-05-05 23:46:49 (GMT) |
commit | ac0b3eec9fbf25fb72d5368fa7ba31b58bb7ed30 (patch) | |
tree | 7046129a3a90bd966eb39963a10f0bcabd2a7d93 | |
parent | 2df39e548264617b8e10fae32bdafbfe2edcd895 (diff) | |
download | Qt-ac0b3eec9fbf25fb72d5368fa7ba31b58bb7ed30.zip Qt-ac0b3eec9fbf25fb72d5368fa7ba31b58bb7ed30.tar.gz Qt-ac0b3eec9fbf25fb72d5368fa7ba31b58bb7ed30.tar.bz2 |
Doc: more clarification of cacheBuffer
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativegridview.cpp | 3 | ||||
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativelistview.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp index ef6d3df..869826c 100644 --- a/src/declarative/graphicsitems/qdeclarativegridview.cpp +++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp @@ -1415,6 +1415,9 @@ void QDeclarativeGridView::setWrapEnabled(bool wrap) set to 40, then up to 2 delegates above and 2 delegates below the visible area may be retained. + Note that cacheBuffer is not a pixel buffer - it only maintains additional + instantiated delegates. + Setting this value can make scrolling the list smoother at the expense of additional memory usage. It is not a substitute for creating efficient delegates; the fewer elements in a delegate, the faster a view may be diff --git a/src/declarative/graphicsitems/qdeclarativelistview.cpp b/src/declarative/graphicsitems/qdeclarativelistview.cpp index 8485071..0811278 100644 --- a/src/declarative/graphicsitems/qdeclarativelistview.cpp +++ b/src/declarative/graphicsitems/qdeclarativelistview.cpp @@ -1848,6 +1848,9 @@ void QDeclarativeListView::setWrapEnabled(bool wrap) set to 40, then up to 2 delegates above and 2 delegates below the visible area may be retained. + Note that cacheBuffer is not a pixel buffer - it only maintains additional + instantiated delegates. + Setting this value can make scrolling the list smoother at the expense of additional memory usage. It is not a substitute for creating efficient delegates; the fewer elements in a delegate, the faster a view may be |