]> git.sesse.net Git - vlc/commit
QT4 Icon view: cache album art pixmap
authorRafaël Carré <rafael.carre@gmail.com>
Thu, 28 Jan 2010 15:11:56 +0000 (16:11 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Thu, 28 Jan 2010 15:18:13 +0000 (16:18 +0100)
commit344416ec80558bfcb24cbcc0650fecbb19da830f
tree0d68fce6a6b0da82f7db2ae49892b5eb009973d1
parent2cd902362e84b9f18ca2a7508c035371bd0eaa7b
QT4 Icon view: cache album art pixmap

The QPixmapCache default size is 10240kB on desktops, this leaves room
for 640 pictures 64x64 in rgba

Improves scrolling with a lot of items.

Also use art url from the first children with art for nodes without art

TODO: cache the full rendering (text + art), QPixmap is a QPaintDevice
subclass
modules/gui/qt4/components/playlist/icon_view.cpp