making trashcan applet to do fancy things...

Marco Martin notmart at gmail.com
Wed Feb 20 11:35:49 CET 2008


On Wednesday 20 February 2008, Kevin Ottens wrote:
> Le Wednesday 20 February 2008, Aaron J. Seigo a écrit :
> > > particular hiding one item of the sidebar when you throw it in the
> > > trash is weeeird.
> >
> > personally i'd assume it gets deleted.
>
> That'd be slightly better already. That said the whole point of the
> trashcan is that you can _restore_ what got in it, in this case it's simply
> deleted. But yeah, I prefer deleted to hidden. ;-)

i used hidden because of the possibility to restore it but yeah can use remove 
not a problem :D
btw, using removePlace it works as expected updating all the dolphin istances, 
so it seems a bug that triggers only when hiding

i've tried to look at kfileplacesmodel sources but i don't understand.. 
removePlace and setPlaceHidden are almost identical, maybe it's 
d->bookmarkManager->root().deleteBookmark(bookmark); that correctly signals 
everybody?
i've tried to call KBookmarkManager::emitChanged() but it seems of no effect, 
maybe i'm missing something...

Cheers,
Marco Martin


> Regards.




More information about the Panel-devel mailing list