Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
abstractdnditem.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef ABSTRACTDNDITEM_H
5#define ABSTRACTDNDITEM_H
6
7#include <QtDesigner/sdk_global.h>
8
9QT_BEGIN_NAMESPACE
10
11class DomUI;
12class QWidget;
13class QPoint;
14
15class QDESIGNER_SDK_EXPORT QDesignerDnDItemInterface
16{
17public:
18 Q_DISABLE_COPY_MOVE(QDesignerDnDItemInterface)
19
20 enum DropType { MoveDrop, CopyDrop };
21
22 QDesignerDnDItemInterface() = default;
23 virtual ~QDesignerDnDItemInterface() = default;
24
25 virtual DomUI *domUi() const = 0;
26 virtual QWidget *widget() const = 0;
27 virtual QWidget *decoration() const = 0;
28 virtual QPoint hotSpot() const = 0;
29 virtual DropType type() const = 0;
30 virtual QWidget *source() const = 0;
31};
32
33QT_END_NAMESPACE
34
35#endif // ABSTRACTDNDITEM_H
friend class QWidget
Definition qpainter.h:421
\inmodule QtCore\reentrant
Definition qpoint.h:25