File indexing completed on 2024-04-28 05:48:12
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> 0003 0004 #pragma once 0005 0006 #include <QQuickItem> 0007 0008 namespace Filelight 0009 { 0010 0011 class DropperItem : public QQuickItem 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit DropperItem(QQuickItem *parent = nullptr); 0016 0017 void dropEvent(QDropEvent *e) final; 0018 void dragEnterEvent(QDragEnterEvent *e) final; 0019 void dragMoveEvent(QDragMoveEvent *e) final; 0020 0021 Q_SIGNALS: 0022 void urlsDropped(const QList<QUrl> &urls); 0023 }; 0024 0025 } // namespace Filelight