digikam
Digikam::AlbumDragDropHandler Class Reference
#include <albumdragdrop.h>

Public Member Functions | |
| AlbumDragDropHandler (AlbumModel *model) | |
| virtual Qt::DropAction | accepts (const QMimeData *data, const QModelIndex &dropIndex) |
| virtual QMimeData * | createMimeData (const QList< Album * > &) |
| virtual bool | dropEvent (QAbstractItemView *view, QDropEvent *e, const QModelIndex &droppedOn) |
| virtual QStringList | mimeTypes () const |
| AlbumModel * | model () const |
Detailed Description
Definition at line 35 of file albumdragdrop.h.
Constructor & Destructor Documentation
| Digikam::AlbumDragDropHandler::AlbumDragDropHandler | ( | AlbumModel * | model | ) |
Definition at line 53 of file albumdragdrop.cpp.
Member Function Documentation
| Qt::DropAction Digikam::AlbumDragDropHandler::accepts | ( | const QMimeData * | data, | |
| const QModelIndex & | dropIndex | |||
| ) | [virtual] |
Returns if the given mime data is accepted for drop on dropIndex.
Returns the proposed action, or Qt::IgnoreAction if not accepted.
Reimplemented from Digikam::AlbumModelDragDropHandler.
Definition at line 304 of file albumdragdrop.cpp.
Create a mime data object for starting a drag from the given Albums.
Reimplemented from Digikam::AlbumModelDragDropHandler.
Definition at line 359 of file albumdragdrop.cpp.
| bool Digikam::AlbumDragDropHandler::dropEvent | ( | QAbstractItemView * | view, | |
| QDropEvent * | e, | |||
| const QModelIndex & | droppedOn | |||
| ) | [virtual] |
Gives the view and the occurring drop event.
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::AlbumModelDragDropHandler.
Definition at line 58 of file albumdragdrop.cpp.
| QStringList Digikam::AlbumDragDropHandler::mimeTypes | ( | ) | const [virtual] |
Returns the supported mime types.
Called by the default implementation of model's mimeTypes().
Reimplemented from Digikam::AlbumModelDragDropHandler.
Definition at line 349 of file albumdragdrop.cpp.
| AlbumModel* Digikam::AlbumDragDropHandler::model | ( | ) | const [inline] |
Reimplemented from Digikam::AlbumModelDragDropHandler.
Definition at line 43 of file albumdragdrop.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference