aboutsummaryrefslogtreecommitdiff
path: root/launcher/widgets/DropLabel.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-11-22 03:55:16 +0100
committerPetr Mrázek <peterix@gmail.com>2021-11-22 03:55:16 +0100
commitb258eac215c791b2a8eed10cecbbf9551c87f0b9 (patch)
tree1ae72f62d344f6a9c982b9dc5d598d32fc742acc /launcher/widgets/DropLabel.cpp
parent5040231f8d6ca865ea50250509c3315ea0c7400e (diff)
downloadPrismLauncher-b258eac215c791b2a8eed10cecbbf9551c87f0b9.tar.gz
PrismLauncher-b258eac215c791b2a8eed10cecbbf9551c87f0b9.tar.bz2
PrismLauncher-b258eac215c791b2a8eed10cecbbf9551c87f0b9.zip
NOISSUE continue reshuffling the codebase
Diffstat (limited to 'launcher/widgets/DropLabel.cpp')
-rw-r--r--launcher/widgets/DropLabel.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/launcher/widgets/DropLabel.cpp b/launcher/widgets/DropLabel.cpp
deleted file mode 100644
index a900e57c..00000000
--- a/launcher/widgets/DropLabel.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "DropLabel.h"
-
-#include <QMimeData>
-#include <QDropEvent>
-
-DropLabel::DropLabel(QWidget *parent) : QLabel(parent)
-{
- setAcceptDrops(true);
-}
-
-void DropLabel::dragEnterEvent(QDragEnterEvent *event)
-{
- event->acceptProposedAction();
-}
-
-void DropLabel::dragMoveEvent(QDragMoveEvent *event)
-{
- event->acceptProposedAction();
-}
-
-void DropLabel::dragLeaveEvent(QDragLeaveEvent *event)
-{
- event->accept();
-}
-
-void DropLabel::dropEvent(QDropEvent *event)
-{
- const QMimeData *mimeData = event->mimeData();
-
- if (!mimeData)
- {
- return;
- }
-
- if (mimeData->hasUrls()) {
- auto urls = mimeData->urls();
- emit droppedURLs(urls);
- }
-
- event->acceptProposedAction();
-}