![]() |
Qt 6.x
The Qt SDK
|
Windows drag implementation. More...
#include <qwindowsdrag.h>
Public Member Functions | |
QWindowsDrag () | |
virtual | ~QWindowsDrag () |
Qt::DropAction | drag (QDrag *drag) override |
void | cancelDrag () override |
Cancels the currently active drag (only for drags of the current application initiated by QPlatformDrag::drag()). | |
IDataObject * | dropDataObject () const |
void | setDropDataObject (IDataObject *dataObject) |
void | releaseDropDataObject () |
QMimeData * | dropData () |
Return data for a drop in process. | |
IDropTargetHelper * | dropHelper () |
May be used to handle extended cursors functionality for drags from outside the app. | |
![]() | |
QPlatformDrag () | |
virtual | ~QPlatformDrag () |
QDrag * | currentDrag () const |
virtual Qt::DropAction | drag (QDrag *m_drag)=0 |
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 Qt::DropAction | defaultAction (Qt::DropActions possibleActions, Qt::KeyboardModifiers modifiers) const |
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. | |
Static Public Member Functions | |
static QWindowsDrag * | instance () |
static bool | isCanceled () |
static bool | isDragging () |
![]() | |
static QPixmap | defaultPixmap () |
Windows drag implementation.
Definition at line 50 of file qwindowsdrag.h.
|
default |
|
virtual |
Definition at line 618 of file qwindowsdrag.cpp.
|
inlineoverridevirtual |
Cancels the currently active drag (only for drags of the current application initiated by QPlatformDrag::drag()).
The default implementation does nothing.
Reimplemented from QPlatformDrag.
Definition at line 59 of file qwindowsdrag.h.
|
overridevirtual |
Implements QPlatformDrag.
Definition at line 726 of file qwindowsdrag.cpp.
References Qt::CopyAction, Qt::dec(), drag(), dropData(), dropDataObject(), Qt::hex(), Qt::IgnoreAction, qCDebug, qWarning, startDoDragDrop(), Qt::TargetMoveAction, translateToQDragDropAction(), and translateToWinDragEffects().
Referenced by drag(), and dropData().
QMimeData * QWindowsDrag::dropData | ( | ) |
Return data for a drop in process.
If it stems from a current drag, use a shortcut.
Definition at line 628 of file qwindowsdrag.cpp.
References QPlatformDrag::currentDrag(), and drag().
Referenced by drag().
|
inline |
Definition at line 63 of file qwindowsdrag.h.
Referenced by drag(), and QWindowsDropMimeData::retrieveDataObject().
IDropTargetHelper * QWindowsDrag::dropHelper | ( | ) |
May be used to handle extended cursors functionality for drags from outside the app.
Definition at line 638 of file qwindowsdrag.cpp.
|
static |
Definition at line 770 of file qwindowsdrag.cpp.
References QWindowsIntegration::instance().
Referenced by QWindowsOleDropTarget::DragLeave(), QWindowsOleDropTarget::DragOver(), and QWindowsDropMimeData::retrieveDataObject().
|
inlinestatic |
Definition at line 60 of file qwindowsdrag.h.
Referenced by QWindowsOleDropSource::QueryContinueDrag().
|
inlinestatic |
Definition at line 61 of file qwindowsdrag.h.
void QWindowsDrag::releaseDropDataObject | ( | ) |
Definition at line 775 of file qwindowsdrag.cpp.
References qCDebug.
Referenced by QWindowsOleDropTarget::DragLeave().
|
inline |
Definition at line 64 of file qwindowsdrag.h.