[Digikam-devel] [digikam] [Bug 281785] no prohibition warning while tagging thumbnail above preview
caulier.gilles at gmail.com
Wed Feb 26 22:36:40 GMT 2014
--- Comment #6 from Gilles Caulier <caulier.gilles at gmail.com> ---
To implement D&D tags support you need to add new methods in ImagePreviewView
class as i do with Canvas class from Image Editor which support D&D. See :
void Canvas::dragEnterEvent(QDragEnterEvent* e)
void Canvas::dragMoveEvent(QDragMoveEvent* e)
void Canvas::dropEvent(QDropEvent* e)
Canvas is a little bit special, because it shared with Showfoto which do not
support digiKam DB. There no DB handling in Canvas. Just a signal is emitted to
parent editor instance to handle or not dropped data, accordingly with DB or
There is no need to reproduce the same scheme in ImagePreviewView than Canvas.
You can directly handle Tags drop directly in this class with dropEvent(). The
code to decode and branch action with tags is similar than this method :
void ImageWindow::slotAddedDropedItems(QDropEvent* e)
In this code of course, all possible dropped data are managed. In case of tags,
editor load image with relevant tags in thumbbar. It do not assign tags to
current image (which is a wrong behavior in fact i think)...
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel