◆ AlbumModelDragDropHandler()
Digikam::AlbumModelDragDropHandler::AlbumModelDragDropHandler |
( |
AbstractAlbumModel * |
model | ) |
|
|
explicit |
◆ ~AlbumModelDragDropHandler()
Digikam::AlbumModelDragDropHandler::~AlbumModelDragDropHandler |
( |
| ) |
|
|
override |
◆ accepts()
Qt::DropAction Digikam::AlbumModelDragDropHandler::accepts |
( |
const QDropEvent * |
e, |
|
|
const QModelIndex & |
dropIndex |
|
) |
| |
|
virtual |
◆ acceptsMimeData()
bool Digikam::AlbumModelDragDropHandler::acceptsMimeData |
( |
const QMimeData * |
data | ) |
|
|
virtual |
Returns if the given mime data can be handled. acceptsMimeData shall return true if a drop of the given mime data will be accepted on any index or place at all. If this returns false, the more specific method accepts() will not be called for this drag. The default implementation uses mimeTypes() to check for supported mime types. There is usually no need to reimplement this.
References mimeTypes().
Referenced by Digikam::AbstractAlbumTreeView::dragEnterEvent().
◆ createMimeData()
QMimeData * Digikam::AlbumModelDragDropHandler::createMimeData |
( |
const QList< Album * > & |
| ) |
|
|
virtual |
◆ dropEvent()
bool Digikam::AlbumModelDragDropHandler::dropEvent |
( |
QAbstractItemView * |
view, |
|
|
const QDropEvent * |
e, |
|
|
const QModelIndex & |
droppedOn |
|
) |
| |
|
virtual |
◆ mimeTypes()
QStringList Digikam::AlbumModelDragDropHandler::mimeTypes |
( |
| ) |
const |
|
virtual |
◆ model()
◆ m_model
The documentation for this class was generated from the following files: