Possible drag and drop actions for KURLDrag

David Faure faure at kde.org
Mon Oct 18 13:16:00 BST 2004


On Saturday 16 October 2004 18:49, Henrique Pinto wrote:
> Em Sex 15 Out 2004 20:18, Wilco Greven escreveu:
> > If there's a need for such a mimetype, when it's not only amarok which will
> > use it, I think it's a good idea. There's already one other case which is
> > similar and that's dragging a screenshot from ksnapshot.
> 
> Ark could make use of it. Currently, when dragging a file from an archive to a 
> Konqueror window, we extract the file to a temporary location and pass that 
> location to Konqueror, but then we got a menu containing "move" and "link" 
> that don't make any sense at all. Actually, we would need something even more 
> powerful that that, as "move" is a valid action and should extract the file 
> and them delete it from the archive.

Then simply test for the result of drag(), it returns a bool, which tells you whether you
have to delete the file from the archive. Not tested, but I think this should work.
And if that works, then you'll need to keep the KURLDrag :)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list