![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Signals | |
void | signalDroppedUrls (const QList< QUrl > &droppedUrls, bool dropped, const QUrl ¤t) |
Public Member Functions | |
ShowfotoDragDropHandler (ShowfotoItemModel *const model) | |
Qt::DropAction | accepts (const QDropEvent *e, const QModelIndex &dropIndex) override |
Returns if the given mime data is accepted for drop on dropIndex. | |
QMimeData * | createMimeData (const QList< QModelIndex > &) override |
Create a mime data object for starting a drag from the given Albums. | |
bool | dropEvent (QAbstractItemView *view, const QDropEvent *e, const QModelIndex &droppedOn) override |
Gives the view and the occurring drop event. | |
QStringList | mimeTypes () const override |
Returns the supported mime types. | |
ShowfotoItemModel * | model () const override |
![]() | |
AbstractItemDragDropHandler (QAbstractItemModel *const model) | |
virtual bool | acceptsMimeData (const QMimeData *data) |
Returns if the given mime data can be handled. | |
Additional Inherited Members | |
![]() | |
QAbstractItemModel * | m_model = nullptr |
|
overridevirtual |
Returns the proposed action, or Qt::IgnoreAction if not accepted.
Reimplemented from Digikam::AbstractItemDragDropHandler.
|
overridevirtual |
Reimplemented from Digikam::AbstractItemDragDropHandler.
|
overridevirtual |
The index is the index where the drop was dropped on. It may be invalid (dropped on decoration, viewport) Returns true if the event is to be accepted.
Reimplemented from Digikam::AbstractItemDragDropHandler.
|
overridevirtual |
Called by the default implementation of model's mimeTypes().
Reimplemented from Digikam::AbstractItemDragDropHandler.
|
overridevirtual |
Reimplemented from Digikam::AbstractItemDragDropHandler.