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// Qt-Security score:significant reason:default
4
5#ifndef ABSTRACTDNDITEM_H
6#define ABSTRACTDNDITEM_H
7
8#include <QtDesigner/sdk_global.h>
9
10QT_BEGIN_NAMESPACE
11
12class DomUI;
13class QWidget;
14class QPoint;
15
16class QDESIGNER_SDK_EXPORT QDesignerDnDItemInterface
17{
18public:
19 Q_DISABLE_COPY_MOVE(QDesignerDnDItemInterface)
20
21 enum DropType { MoveDrop, CopyDrop };
22
23 QDesignerDnDItemInterface() = default;
24 virtual ~QDesignerDnDItemInterface() = default;
25
26 virtual DomUI *domUi() const = 0;
27 virtual QWidget *widget() const = 0;
28 virtual QWidget *decoration() const = 0;
29 virtual QPoint hotSpot() const = 0;
30 virtual DropType type() const = 0;
31 virtual QWidget *source() const = 0;
32};
33
34QT_END_NAMESPACE
35
36#endif // ABSTRACTDNDITEM_H
friend class QWidget
Definition qpainter.h:432
\inmodule QtCore\reentrant
Definition qpoint.h:30