QDesignerDnDItemInterface Class
The QDesignerDnDItemInterface class provides an interface that is used to manage items during a drag and drop operation. \inmodule
QtDesigner \internal
. More...
Header: | #include <QDesignerDnDItemInterface> |
Public Types
enum | DropType { MoveDrop, CopyDrop } |
Public Functions
QDesignerDnDItemInterface() | |
virtual | ~QDesignerDnDItemInterface() |
virtual QWidget * | decoration() const = 0 |
virtual DomUI * | domUi() const = 0 |
virtual QPoint | hotSpot() const = 0 |
virtual QWidget * | source() const = 0 |
virtual DropType | type() const = 0 |
virtual QWidget * | widget() const = 0 |
Detailed Description
Member Type Documentation
enum QDesignerDnDItemInterface::DropType
This enum describes the result of a drag and drop operation.
Constant | Value | Description |
---|---|---|
QDesignerDnDItemInterface::MoveDrop | 0 | The item was moved. |
QDesignerDnDItemInterface::CopyDrop | 1 | The item was copied. |
Member Function Documentation
[constexpr noexcept]
QDesignerDnDItemInterface::QDesignerDnDItemInterface()
Constructs a new interface to a drag and drop item.
[virtual constexpr noexcept]
QDesignerDnDItemInterface::~QDesignerDnDItemInterface()
Destroys the interface to the item.
[pure virtual]
QWidget *QDesignerDnDItemInterface::decoration() const
Returns the widget used to represent the item.
[pure virtual]
DomUI *QDesignerDnDItemInterface::domUi() const
Returns a user interface object for the item.
[pure virtual]
QPoint QDesignerDnDItemInterface::hotSpot() const
Returns the cursor's hotspot.
See also QDrag::hotSpot().
[pure virtual]
QWidget *QDesignerDnDItemInterface::source() const
Returns the widget that is the source of the drag and drop operation; i.e. the original container of the widget being dragged.
See also widget().
[pure virtual]
DropType QDesignerDnDItemInterface::type() const
Returns the type of drag and drop operation in progress.
[pure virtual]
QWidget *QDesignerDnDItemInterface::widget() const
Returns the widget being copied or moved in the drag and drop operation.
See also source().