[Digikam-devel] [Bug 142774] Moving pictures between albums

Gilles Caulier caulier.gilles at gmail.com
Wed Dec 19 14:46:54 GMT 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From caulier.gilles gmail com  2007-12-19 15:46 -------
Created an attachment (id=22623)
 --> (http://bugs.kde.org/attachment.cgi?id=22623&action=view)
Drag & Drop supports over digiKam sidebar...

This patch implement D&d support with digiKam sidebar, like Amarok, but using a
more universal way to do it...

Problem is about KMultiTabBar class from KDE API witch do not provide D&D
supports:

http://websvn.kde.org/branches/KDE/3.5/kdelibs/kutils/kmultitabbar.h?revision=535111&view=markup


Amarok team have re-implemented whole KDE widget to do it... It's a waste of
time (:=))) :

http://websvn.kde.org/branches/stable/extragear/multimedia/amarok/src/multitabbar.h?revision=629191&view=markup


... and of course for Amarok KDE4 port, the widget have been fully
re-implemented from scratch...

My solution is more simple/universal/portable : using QWidget::eventFilter()

This patch fix Digikam::Sidebar in this way. When you drag an album folder or
album items to a sidebar tab button,  this one is actived and you toggle
automatically to the right view... to drop items...

This patch do not work with all cases. For ex, you cannot yet D&D from Tag icon
view to Album icon view. More changes need to be done in AlbumIconView class...
I need more time...

Please test this patch against current KDE3 implementation from svn and let's
me ear your viewpoints...

Gilles Caulier



More information about the Digikam-devel mailing list