[PATCH] Folder icons reflect contents
André Wöbbeking
Woebbeking at onlinehome.de
Tue Aug 8 18:17:31 BST 2006
On Tuesday 08 August 2006 19:05, Carsten Pfeiffer wrote:
> 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.
even faster is startsWith(QLatin1String("folder")) which avoids another
temporary QString.
Cheers,
André
More information about the kde-core-devel
mailing list