vnote/src/widgets/attachmentdragdropareaindicator.h
Le Tan 52702a32e9 hard days for VNoteX project
Never say "refactor" again!!!
2020-11-28 23:10:43 +08:00

27 lines
653 B
C++

#ifndef ATTACHMENTDRAGDROPAREAINDICATOR_H
#define ATTACHMENTDRAGDROPAREAINDICATOR_H
#include "dragdropareaindicator.h"
namespace vnotex
{
class ViewWindow;
class AttachmentDragDropAreaIndicator : public DragDropAreaIndicatorInterface
{
public:
AttachmentDragDropAreaIndicator(ViewWindow *p_viewWindow);
bool handleDragEnterEvent(QDragEnterEvent *p_event) Q_DECL_OVERRIDE;
bool handleDropEvent(QDropEvent *p_event) Q_DECL_OVERRIDE;
static bool isAccepted(const QDragEnterEvent *p_event);
private:
ViewWindow *m_viewWindow = nullptr;
};
}
#endif // ATTACHMENTDRAGDROPAREAINDICATOR_H