[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Drag and Plop in KDCOP
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-10-31 14:11:42
[Download RAW message or body]

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 <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic