4#include <QDragEnterEvent>
22 event->acceptProposedAction();
24 event->acceptProposedAction();
A simple frame that allows the user to drag and drop a file into it.
Definition FileDropFrame.h:12
std::function< bool(const QMimeData *event)> m_drop_filter
Definition FileDropFrame.h:41
void dropEvent(QDropEvent *event)
Definition FileDropFrame.h:26
void setDropCallback(const std::function< void(QDropEvent *event)> &drop_callback)
Definition FileDropFrame.h:31
void dragEnterEvent(QDragEnterEvent *event)
Definition FileDropFrame.h:19
void setDropFilter(std::function< bool(const QMimeData *event)> filter)
Definition FileDropFrame.h:35
FileDropFrame(QWidget *parent=nullptr)
Definition FileDropFrame.h:14
std::function< void(QDropEvent *event)> m_drop_callback
Definition FileDropFrame.h:40