diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-05-05 06:39:05 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-05-05 06:39:05 (GMT) |
commit | ab030e931e05a060b4f6fabf4235f05aeb0c252c (patch) | |
tree | 99bcfd4ede7b77c76ce4eb348cca346768611b69 /src/declarative/graphicsitems/qdeclarativelistview.cpp | |
parent | d6597781a658ba9546bc56f4f3079234c0790e1d (diff) | |
download | Qt-ab030e931e05a060b4f6fabf4235f05aeb0c252c.zip Qt-ab030e931e05a060b4f6fabf4235f05aeb0c252c.tar.gz Qt-ab030e931e05a060b4f6fabf4235f05aeb0c252c.tar.bz2 |
Fix cacheBuffer documentation.
Task-number: QTBUG-10385
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativelistview.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativelistview.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview.cpp b/src/declarative/graphicsitems/qdeclarativelistview.cpp index 3877fab..75cf547 100644 --- a/src/declarative/graphicsitems/qdeclarativelistview.cpp +++ b/src/declarative/graphicsitems/qdeclarativelistview.cpp @@ -1839,11 +1839,19 @@ void QDeclarativeListView::setWrapEnabled(bool wrap) /*! \qmlproperty int ListView::cacheBuffer - This property holds the number of off-screen pixels to cache. - - This property determines the number of pixels above the top of the list - and below the bottom of the list to cache. Setting this value can make - scrolling the list smoother at the expense of additional memory usage. + This property determines whether delegates are retained outside the + visible area of the view. + + If non-zero the view will keep as many delegates + instantiated as will fit within the buffer specified. For example, + if in a vertical view the delegate is 20 pixels high and \c cacheBuffer is + set to 40, then up to 2 delegates above and 2 delegates below the visible + area may be retained. + + 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 + scrolled. */ int QDeclarativeListView::cacheBuffer() const { |