mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
27 lines
653 B
C++
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
|