[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 13:35:37
[Download RAW message or body]

Drag and Plop ? LOL ;)

On Mercredi 31 Octobre 2001 14:27, ian reinhart geiser wrote:
> Greetings
> 
> I am fixing some odds and ends in KDCOP and want to add some drag and drop
> stuff to the current UI.  The big issue is I cannot for the life of me figure
> out a sane way of adding it to the existing code base.
> I checked out the QT example for DND but I am still confused some.  My goal
> is to have the ability to drag "calls" from the treeview to the konsole or to
> a text editor.  I just do not know how to add such a drag event to a listbox
> like that...

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

Not sure what exactly you want to do, so dunno what else to advise...
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