Robert 0427e19b72
chore: adapt license and copyright (#680)
Modify project to pass the REUSE check

Log: Modify project to pass the REUSE check
Task: https://pms.uniontech.com/task-view-185215.html
Change-Id: Ie954cf985f16c1a243bfc912aa7458c6e85ce9de
2022-09-06 11:36:55 +08:00

36 lines
805 B
C++

// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef APPDRAG_H
#define APPDRAG_H
#include "appdragwidget.h"
#include <QDrag>
#include <QWidget>
class AppDrag : public QDrag
{
public:
explicit AppDrag(QObject *dragSource);
virtual ~AppDrag();
void setPixmap(const QPixmap &);
QPixmap pixmap() const;
Qt::DropAction start(Qt::DropActions supportedActions = Qt::CopyAction);
Qt::DropAction exec(Qt::DropActions supportedActions = Qt::MoveAction);
Qt::DropAction exec(Qt::DropActions supportedActions, Qt::DropAction defaultAction);
AppDragWidget *appDragWidget();
private:
void setDragMoveCursor();
private:
QPointer<AppDragWidget> m_appDragWidget;
};
#endif /* DRAGAPP_H */