Slows starting of downloading with KIO

David Faure faure at
Mon Jan 2 11:55:36 GMT 2006

On Monday 02 January 2006 12:22, Michael Brade wrote:
> No, I don't think so.. currently in a treeview there is no way to get the root 
> file item for a directory B if directory A is the root directory of the 
> KDirLister and A is not a parent of B. So if you need that directory item 
> then we have to add this itemForURL().
> Looking at the KDirLister API, I think we should also change rootItem() to 
> rootItem( const KURL& = KURL() ) to add this missing functionality to a local 
> KDirLister, it would return the root item of the lister if no url is given, 
> otherwise it would return the root item of the given directory. Or add a new 
> method rootItemForDir( const KURL& ). [I'd prefer the rootItem() change] 

Let's go back to this topic once we dig more deeply into Qt4/KDE4 hacking
of the directory listings; we should have an item model on top of kdirlister,
I think Pascal started this in konqueror but I didn't look into it yet.

For now in this thread my idea was to see the cache as a general url->item
dictionary, which indeed might not be the case out of the box for root items,
in which case it needs to take care of those.

> KDE 3: The Next Generation in Desktop Experience
s/Next/Current/, or s/3/4/ ;)

David Faure, faure at, sponsored by Trolltech to work on KDE,
Konqueror (, and KOffice (

More information about the kde-core-devel mailing list