From kde-devel Wed Oct 31 14:11:42 2001 From: David Faure Date: Wed, 31 Oct 2001 14:11:42 +0000 To: kde-devel Subject: Re: Drag and Plop in KDCOP X-MARC-Message: https://marc.info/?l=kde-devel&m=100453766423097 On Mercredi 31 Octobre 2001 14:58, ian reinhart geiser wrote: David FAURE, david@mandrakesoft.com, faure@kde.org http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/ KDE 3.0: Konquering the Desktops -- > On Wednesday 31 October 2001 08:35 am, David Faure wrote: > > Does it use KListView ? > > KListView has builtin support for dnd .... hmm, but AFAIK QListView in Qt3 > > does, too, now..... > > > > Anyway: from KListView's documentation : > > > > * KListView is drag-enabled, too: to benefit from that you've got derive > > from it. * Reimplement @ref dragObject() and (possibly) @ref startDrag(), > > * and @ref setDragEnabled(true). > No it uses QListView. > It is no big effort though to convert it to KListView, so I will explore that > option as I could not find any details on the subject in QT 3.0s docs for > QListView under public members. > > Is there any way I can get these without reimplementing KListView or > QListView? No, the widget has to call your dragObject() reimplementation, there's no other way. Check out keditbookmarks for an example of (quite avanced) DnD handling, inheriting KListView. If you don't need to be able to move items, it should be much simpler though. David. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<