◆ AbstractItemDragDropHandler()
Digikam::AbstractItemDragDropHandler::AbstractItemDragDropHandler |
( |
QAbstractItemModel *const |
model | ) |
|
|
explicit |
◆ ~AbstractItemDragDropHandler()
Digikam::AbstractItemDragDropHandler::~AbstractItemDragDropHandler |
( |
| ) |
|
|
virtual |
◆ accepts()
Qt::DropAction Digikam::AbstractItemDragDropHandler::accepts |
( |
const QDropEvent * |
e, |
|
|
const QModelIndex & |
dropIndex |
|
) |
| |
|
virtual |
◆ acceptsMimeData()
bool Digikam::AbstractItemDragDropHandler::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::DragDropViewImplementation::dragEnterEvent().
◆ createMimeData()
QMimeData * Digikam::AbstractItemDragDropHandler::createMimeData |
( |
const QList< QModelIndex > & |
| ) |
|
|
virtual |
◆ dropEvent()
bool Digikam::AbstractItemDragDropHandler::dropEvent |
( |
QAbstractItemView * |
view, |
|
|
const QDropEvent * |
e, |
|
|
const QModelIndex & |
droppedOn |
|
) |
| |
|
virtual |
◆ mimeTypes()
QStringList Digikam::AbstractItemDragDropHandler::mimeTypes |
( |
| ) |
const |
|
virtual |
◆ model()
QAbstractItemModel * Digikam::AbstractItemDragDropHandler::model |
( |
| ) |
const |
◆ m_model
QAbstractItemModel* Digikam::AbstractItemDragDropHandler::m_model |
|
protected |
The documentation for this class was generated from the following files: