Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 | setLastMouseEvent (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 22 of file qcocoadrag.h.
QCocoaDrag::QCocoaDrag | ( | ) |
Definition at line 23 of file qcocoadrag.mm.
QCocoaDrag::~QCocoaDrag | ( | ) |
Definition at line 30 of file qcocoadrag.mm.
References release().
|
overridevirtual |
Reimplemented from QPlatformDrag.
Definition at line 50 of file qcocoadrag.mm.
References Qt::AltModifier, Qt::ControlModifier, Qt::CopyAction, QPlatformDrag::currentDrag(), QDrag::defaultAction(), Qt::IgnoreAction, Qt::LinkAction, Qt::MoveAction, qDebug, and QDrag::supportedActions().
|
overridevirtual |
Implements QPlatformDrag.
Definition at line 97 of file qcocoadrag.mm.
References at, QUtiMimeConverter::DnD, QDrag::hotSpot(), Qt::IgnoreAction, QMacPasteboard::LazyRequest, QDrag::mimeData(), o, Q_ASSERT, QByteArray(), QMimeData::setData(), QPixmap::toImage(), window(), QPoint::x(), and QPoint::y().
QMimeData * QCocoaDrag::dragMimeData | ( | ) |
Definition at line 42 of file qcocoadrag.mm.
References QDrag::mimeData().
void QCocoaDrag::exitDragLoop | ( | ) |
Definition at line 227 of file qcocoadrag.mm.
References QEventLoop::exit(), QEventLoop::isRunning(), and Q_ASSERT.
void QCocoaDrag::setAcceptedAction | ( | Qt::DropAction | act | ) |
Definition at line 222 of file qcocoadrag.mm.
void QCocoaDrag::setLastMouseEvent | ( | NSEvent * | event, |
NSView * | view ) |