[PATCH] Folder icons reflect contents
Carsten Pfeiffer
carpdjih at mailbox.tu-berlin.de
Tue Aug 8 18:05:26 BST 2006
On Tue, Aug 08, 2006 at 06:45:38PM +0200, Remi Villatel wrote:
> - if ( !m_fileitem->isDir() || m_fileitem->iconName() != "folder" )
> + if ( !m_fileitem->isDir() || (m_fileitem->iconName()).left(6) != "folder" )
Just a little performance improvement: can you use .startsWith("folder")
instead of .left()? This avoids creating a temporary QString.
Cheers,
Carsten
More information about the kde-core-devel
mailing list