27 #ifndef DRAGANDDROPHANDLER_H
28 #define DRAGANDDROPHANDLER_H
31 #include <QAbstractItemView>
35 class QAbstractItemView;
92 void mouseHoversOver();
95 QAbstractItemView *m_view;
99 QModelIndex m_potentialTargetIndex;
101 void showDropMenu(QDropEvent *event, QList<QUrl> &urls,
const QString &targetPath)
const;
Handles drag and drop events for a QAbstractItemView so that we don't have to implement the same code...
Definition: DragAndDropHandler.h:44
void handleDragEnterEvent(QDragEnterEvent *event)
Handles the drag enter event.
Definition: DragAndDropHandler.cpp:77
void handleDragLeaveEvent(QDragLeaveEvent *event)
Handles the drag leave event.
Definition: DragAndDropHandler.cpp:134
void handleDropEvent(QDropEvent *event)
Handles the drop event.
Definition: DragAndDropHandler.cpp:197
void handleDragMoveEvent(QDragMoveEvent *event)
Handles the drag move event.
Definition: DragAndDropHandler.cpp:97
DragAndDropHandler(QAbstractItemView *view, QObject *parent=nullptr)
Constructs a DragAndDropHandler with the given QAbstractItemView and parent object.
Definition: DragAndDropHandler.cpp:50