File indexing completed on 2024-04-28 04:21:22
0001 // SPDX-FileCopyrightText: 2003-2022 Jesper K. Pedersen <blackie@kde.org> 0002 // 0003 // SPDX-License-Identifier: GPL-2.0-or-later 0004 0005 #ifndef THUMBNAILDND_H 0006 #define THUMBNAILDND_H 0007 0008 #include "ThumbnailComponent.h" 0009 0010 #include <QObject> 0011 0012 class QDragEnterEvent; 0013 class QDropEvent; 0014 class QDragLeaveEvent; 0015 class QDragMoveEvent; 0016 0017 namespace ThumbnailView 0018 { 0019 0020 class ThumbnailDND : public QObject, private ThumbnailComponent 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit ThumbnailDND(ThumbnailFactory *factory); 0026 void contentsDragMoveEvent(QDragMoveEvent *event); 0027 void contentsDragLeaveEvent(QDragLeaveEvent *); 0028 void contentsDropEvent(QDropEvent *event); 0029 void contentsDragEnterEvent(QDragEnterEvent *event); 0030 0031 private Q_SLOTS: 0032 void realDropEvent(); 0033 0034 private: 0035 void removeDropIndications(); 0036 }; 0037 } 0038 0039 #endif /* THUMBNAILDND_H */ 0040 0041 // vi:expandtab:tabstop=4 shiftwidth=4: