2019-10-14 01:31:53 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
class DropLabel : public QLabel {
|
2019-10-14 01:31:53 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
public:
|
|
|
|
explicit DropLabel(QWidget* parent = nullptr);
|
2019-10-14 01:31:53 +01:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
signals:
|
2019-10-14 01:31:53 +01:00
|
|
|
void droppedURLs(QList<QUrl> urls);
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
protected:
|
|
|
|
void dropEvent(QDropEvent* event) override;
|
|
|
|
void dragEnterEvent(QDragEnterEvent* event) override;
|
|
|
|
void dragMoveEvent(QDragMoveEvent* event) override;
|
|
|
|
void dragLeaveEvent(QDragLeaveEvent* event) override;
|
2019-10-14 01:31:53 +01:00
|
|
|
};
|