File indexing completed on 2024-12-22 05:01:13
0001 /* 0002 This file is part of KDE Kontact. 0003 0004 SPDX-FileCopyrightText: 2004 Tobias Koenig <tokoe@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include <QWidget> 0012 0013 class QDragEnterEvent; 0014 class QDropEvent; 0015 0016 class DropWidget : public QWidget 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 explicit DropWidget(QWidget *parent); 0022 0023 Q_SIGNALS: 0024 void summaryWidgetDropped(QWidget *target, QObject *source, int alignment); 0025 0026 protected: 0027 void dragEnterEvent(QDragEnterEvent *) override; 0028 void dropEvent(QDropEvent *) override; 0029 };