digiKam
dragdropimplementations.h File Reference

Go to the source code of this file.

Classes

class  Digikam::DragDropModelImplementation
 
class  Digikam::DragDropViewImplementation
 

Namespaces

 Digikam
 

Macros

#define DECLARE_MODEL_DRAG_DROP_METHODS
 
#define DECLARE_VIEW_DRAG_DROP_METHODS(ParentViewClass)
 

Macro Definition Documentation

◆ DECLARE_MODEL_DRAG_DROP_METHODS

#define DECLARE_MODEL_DRAG_DROP_METHODS
Value:
virtual Qt::DropActions supportedDropActions() const override \
{ return DragDropModelImplementation::supportedDropActions(); } \
virtual QStringList mimeTypes() const override \
{ return DragDropModelImplementation::mimeTypes(); } \
virtual bool dropMimeData(const QMimeData* d, Qt::DropAction a, \
int r, int c, const QModelIndex& p) override \
{ return DragDropModelImplementation::dropMimeData(d, a, r, c, p); } \
virtual QMimeData* mimeData(const QModelIndexList& indexes) const override \
{ return DragDropModelImplementation::mimeData(indexes); }
DropAction
Definition: itemdragdrop.cpp:60

◆ DECLARE_VIEW_DRAG_DROP_METHODS

#define DECLARE_VIEW_DRAG_DROP_METHODS (   ParentViewClass)
Value:
virtual QAbstractItemView* asView() override \
{ return this; } \
void dragEnterEvent(QDragEnterEvent* e) override \
{ DragDropViewImplementation::dragEnterEvent(e); } \
void dragMoveEvent(QDragMoveEvent* e) override \
{ ParentViewClass::dragMoveEvent(e); \
DragDropViewImplementation::dragMoveEvent(e); } \
void dropEvent(QDropEvent* e) override \
{ ParentViewClass::dropEvent(e); \
DragDropViewImplementation::dropEvent(e); } \
void startDrag(Qt::DropActions supportedActions) override \
{ DragDropViewImplementation::startDrag(supportedActions); }