mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
21 lines
425 B
C++
21 lines
425 B
C++
#pragma once
|
|
|
|
#include <QLabel>
|
|
|
|
class DropLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DropLabel(QWidget *parent = nullptr);
|
|
|
|
signals:
|
|
void droppedURLs(QList<QUrl> urls);
|
|
|
|
protected:
|
|
void dropEvent(QDropEvent *event) override;
|
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
|
void dragMoveEvent(QDragMoveEvent *event) override;
|
|
void dragLeaveEvent(QDragLeaveEvent *event) override;
|
|
};
|