Possible drag and drop actions for KURLDrag

Wilco Greven j.w.greven at student.utwente.nl
Fri Oct 15 23:16:16 BST 2004


Op vrijdag 15 oktober 2004 22:40, schreef David Faure:
> On Friday 15 October 2004 21:59, Wilco Greven wrote:
> > Hello,
> >
> > I've implemented dragging covers from amarok's cover manager. I'm using
> > KURLDrag (and also QImageDrag) so it's possible to drag the file
> > containing the cover image to Konqueror. But the file should be
> > considered as a kind of private data. So while it's ok to copy the file,
> > it shouldn't be possible to move it.
> >
> > I couldn't find a way to specify this in the KURLDrag. Is there a way to
> > do this? Or is there another solution? The only thing I can think of is
> > to make a copy of the orginal file and offer that in the dragobject.
>
> Tried QDragObject::dragCopy() ?

Yes, I tried reimplementing QIconView::startDrag() and starting the drag with 
dragCopy(). But Konqueror still provides the move option, and it will move 
the file when the option is chosen.




More information about the kde-core-devel mailing list