iconSize() == 0

David Faure dfaure at trolltech.com
Sat Jun 7 09:10:21 BST 2003


On Saturday 07 June 2003 01:54, Maks Orlovich wrote:
> Hi.. Looking at iconview performance some more, I've noticed we re-calculate 
> the icon size-dependent stuff frequently even when we don't have to, despite 
> the if ( size == m_pIconView->iconSize() ) check in 
> KonqKfmIconView::newIconSize, because many directories somehow get iconSize = 
> 0 into their .directoy files. It seems we default to this in the 
> KonqPropsView ctor. I wonder whether this is intentional, and if so, what the 
> semantic of the 0 is supposed to be...

0 means "whatever is the configuration for KIcon::Desktop icons".
The equality check above should probably take that into account indeed...

-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
Qtella users - stability patches at http://blackie.dk/~dfaure/qtella.html




More information about the kfm-devel mailing list