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.qdoc
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \class QDesignerDnDItemInterface
6 \brief The QDesignerDnDItemInterface class provides an interface that is used to manage items
7 during a drag and drop operation.
8 \inmodule QtDesigner
9 \internal
10*/
11
12/*!
13 \enum QDesignerDnDItemInterface::DropType
14
15 This enum describes the result of a drag and drop operation.
16
17 \value MoveDrop The item was moved.
18 \value CopyDrop The item was copied.
19*/
20
21/*!
22 \fn QDesignerDnDItemInterface::QDesignerDnDItemInterface()
23
24 Constructs a new interface to a drag and drop item.
25*/
26
27/*!
28 \fn QDesignerDnDItemInterface::~QDesignerDnDItemInterface()
29
30 Destroys the interface to the item.
31*/
32
33/*!
34 \fn DomUI *QDesignerDnDItemInterface::domUi() const
35
36 Returns a user interface object for the item.
37*/
38
39/*!
40 \fn QWidget *QDesignerDnDItemInterface::widget() const
41
42 Returns the widget being copied or moved in the drag and drop operation.
43
44 \sa source()
45*/
46
47/*!
48 \fn QWidget *QDesignerDnDItemInterface::decoration() const
49
50 Returns the widget used to represent the item.
51*/
52
53/*!
54 \fn QPoint QDesignerDnDItemInterface::hotSpot() const
55
56 Returns the cursor's hotspot.
57
58 \sa QDrag::hotSpot()
59*/
60
61/*!
62 \fn DropType QDesignerDnDItemInterface::type() const
63
64 Returns the type of drag and drop operation in progress.
65*/
66
67/*!
68 \fn QWidget *QDesignerDnDItemInterface::source() const
69
70 Returns the widget that is the source of the drag and drop operation; i.e. the original
71 container of the widget being dragged.
72
73 \sa widget()
74*/