![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcocoadrag.h>
Public Member Functions | |
QCocoaDrag () | |
~QCocoaDrag () | |
QMimeData * | dragMimeData () |
Qt::DropAction | drag (QDrag *m_drag) override |
Qt::DropAction | defaultAction (Qt::DropActions possibleActions, Qt::KeyboardModifiers modifiers) const override |
void | setLastInputEvent (NSEvent *event, NSView *view) |
void | setAcceptedAction (Qt::DropAction act) |
void | exitDragLoop () |
Public Member Functions inherited from QPlatformDrag | |
QPlatformDrag () | |
virtual | ~QPlatformDrag () |
QDrag * | currentDrag () const |
virtual void | cancelDrag () |
Cancels the currently active drag (only for drags of the current application initiated by QPlatformDrag::drag()). | |
void | updateAction (Qt::DropAction action) |
Called to notify QDrag about changes of the current action. | |
virtual bool | ownsDragObject () const |
Returns bool indicating whether QPlatformDrag takes ownership and therefore responsibility of deleting the QDrag object passed in from QPlatformDrag::drag. This can be useful on platforms where QDrag object has to be kept around. |
Additional Inherited Members | |
Static Public Member Functions inherited from QPlatformDrag | |
static QPixmap | defaultPixmap () |
Definition at line 25 of file qcocoadrag.h.
QCocoaDrag::QCocoaDrag | ( | ) |
Definition at line 30 of file qcocoadrag.mm.
QCocoaDrag::~QCocoaDrag | ( | ) |
Definition at line 37 of file qcocoadrag.mm.
|
overridevirtual |
Reimplemented from QPlatformDrag.
Definition at line 58 of file qcocoadrag.mm.
|
overridevirtual |
Implements QPlatformDrag.
Definition at line 105 of file qcocoadrag.mm.
References QMacPasteboard::LazyRequest, and QMacPasteboard::setMimeData().
QMimeData * QCocoaDrag::dragMimeData | ( | ) |
Definition at line 50 of file qcocoadrag.mm.
void QCocoaDrag::exitDragLoop | ( | ) |
Definition at line 235 of file qcocoadrag.mm.
void QCocoaDrag::setAcceptedAction | ( | Qt::DropAction | act | ) |
Definition at line 230 of file qcocoadrag.mm.
void QCocoaDrag::setLastInputEvent | ( | NSEvent * | event, |
NSView * | view ) |
to meet NSView dragImage:at guarantees, we need to record the original event and view when handling an event in QNSView
Definition at line 42 of file qcocoadrag.mm.