mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-23 20:10:48 +08:00
26 lines
549 B
C
26 lines
549 B
C
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||
|
|
||
|
#ifndef DRAGWIDGET_H
|
||
|
#define DRAGWIDGET_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
QT_BEGIN_NAMESPACE
|
||
|
class QDragEnterEvent;
|
||
|
class QDropEvent;
|
||
|
QT_END_NAMESPACE
|
||
|
|
||
|
class DragWidget : public QWidget
|
||
|
{
|
||
|
public:
|
||
|
explicit DragWidget(QWidget *parent = nullptr);
|
||
|
|
||
|
protected:
|
||
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||
|
void dropEvent(QDropEvent *event) override;
|
||
|
void mousePressEvent(QMouseEvent *event) override;
|
||
|
};
|
||
|
|
||
|
#endif // DRAGWIDGET_H
|