◆ ItemDragDropHandler()
Digikam::ItemDragDropHandler::ItemDragDropHandler |
( |
ItemModel *const |
model | ) |
|
|
explicit |
◆ accepts()
Qt::DropAction Digikam::ItemDragDropHandler::accepts |
( |
const QDropEvent * |
e, |
|
|
const QModelIndex & |
dropIndex |
|
) |
| |
|
overridevirtual |
◆ acceptsMimeData()
bool Digikam::AbstractItemDragDropHandler::acceptsMimeData |
( |
const QMimeData * |
data | ) |
|
|
virtualinherited |
◆ addToGroup
◆ albumModel()
◆ assignTags
void Digikam::ItemDragDropHandler::assignTags |
( |
const QList< ItemInfo > & |
list, |
|
|
const QList< int > & |
tagIDs |
|
) |
| |
|
signal |
◆ createMimeData()
QMimeData * Digikam::ItemDragDropHandler::createMimeData |
( |
const QList< QModelIndex > & |
| ) |
|
|
overridevirtual |
◆ dragDropSort
void Digikam::ItemDragDropHandler::dragDropSort |
( |
const ItemInfo & |
pick, |
|
|
const QList< ItemInfo > & |
infos |
|
) |
| |
|
signal |
◆ dropEvent()
bool Digikam::ItemDragDropHandler::dropEvent |
( |
QAbstractItemView * |
view, |
|
|
const QDropEvent * |
e, |
|
|
const QModelIndex & |
droppedOn |
|
) |
| |
|
overridevirtual |
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::AbstractItemDragDropHandler.
References addToGroup(), Digikam::ItemCategorizedView::albumAt(), Digikam::TableViewTreeView::albumAt(), Digikam::ItemInfo::albumId(), albumModel(), Digikam::ItemCategorizedView::allItemInfos(), Digikam::AssignTagAction, assignTags(), Digikam::DItemDrag::canDecode(), Digikam::DTagListDrag::canDecode(), Digikam::DCameraItemListDrag::canDecode(), Digikam::DigikamItemView::confirmFaces(), Digikam::DIO::copy(), Digikam::CopyAction, Digikam::ItemAlbumModel::currentAlbums(), Digikam::DTagListDrag::decode(), Digikam::DItemDrag::decode(), dragDropSort(), Digikam::GroupAndMoveAction, Digikam::TAlbum::hasProperty(), Digikam::Album::id(), Digikam::ItemCategorizedView::imageFilterModel(), Digikam::ItemModel::imageInfo(), Digikam::ImportUI::instance(), Digikam::ItemInfo::isNull(), Digikam::FaceTags::isPerson(), Digikam::Album::isRoot(), itemInfosDropped(), m_readOnly, Digikam::ImageSortFilterModel::mapToSourceItemModel(), model(), Digikam::DIO::move(), Digikam::MoveAction, Digikam::NoAction, Digikam::TagPropertyName::person(), Digikam::Album::PHYSICAL, Digikam::ItemCategorizedView::selectedItemInfosCurrentFirst(), Digikam::ImportUI::slotDownload(), Digikam::SortAction, Digikam::Album::TAG, Digikam::Album::type(), Digikam::FaceTags::unconfirmedPersonTagId(), Digikam::FaceTags::unknownPersonTagId(), and urlsDropped().
◆ itemInfosDropped
void Digikam::ItemDragDropHandler::itemInfosDropped |
( |
const QList< ItemInfo > & |
infos | ) |
|
|
signal |
◆ mimeTypes()
QStringList Digikam::ItemDragDropHandler::mimeTypes |
( |
| ) |
const |
|
overridevirtual |
◆ model()
ItemModel * Digikam::ItemDragDropHandler::model |
( |
| ) |
const |
◆ setReadOnlyDrop()
void Digikam::ItemDragDropHandler::setReadOnlyDrop |
( |
bool |
readOnly | ) |
|
Enables a mode in which dropping will never start an operation which copies or moves files on disk. Only the signals are emitted.
References m_readOnly.
◆ urlsDropped
void Digikam::ItemDragDropHandler::urlsDropped |
( |
const QList< QUrl > & |
urls | ) |
|
|
signal |
◆ m_model
QAbstractItemModel* Digikam::AbstractItemDragDropHandler::m_model |
|
protectedinherited |
◆ m_readOnly
bool Digikam::ItemDragDropHandler::m_readOnly |
|
protected |
The documentation for this class was generated from the following files: