summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_network_access_qhttp.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-07-05 04:20:14 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-07-13 04:38:58 (GMT)
commitca259d99473757190152e81e899aa200355235a5 (patch)
treea92c17f7c3135f4eaca414740f4e7ec2464c9fdf /doc/src/snippets/code/src_network_access_qhttp.cpp
parente2d8a2b0619c70a593da9289b86e0e8594408044 (diff)
downloadQt-ca259d99473757190152e81e899aa200355235a5.zip
Qt-ca259d99473757190152e81e899aa200355235a5.tar.gz
Qt-ca259d99473757190152e81e899aa200355235a5.tar.bz2
Make declarative pixmap cache easier to use
The QDeclarativePixmapCache was both slow, and very trickey to use correctly. Many QML elements did not correctly cancel outstanding requests, which leads to pixmaps leaking indefinately. Other elements, such as Text, were subject to race conditions that meant they may never actually load all their images. QDeclarativePixmap is a single class than encapsulates the action of fetching a pixmap, as well as the pixmap itself and the responsibility of canceling outstanding requests. Rather than relying on Qt's pixmap cache that doesn't cache all the information QML needs, QDeclarativePixmap implements its own cache, that correctly degrades over time (unlike QPixmapCache that can stop expiring items in some conditions). Reviewed-by: Warwick Allison (cherry picked from commit 09f07b98dfdaec2e48749768b967a48e588d3f7f)
Diffstat (limited to 'doc/src/snippets/code/src_network_access_qhttp.cpp')
0 files changed, 0 insertions, 0 deletions