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
QWindowsDrag Class Reference

Windows drag implementation. More...

#include <qwindowsdrag.h>

Inheritance diagram for QWindowsDrag:
Collaboration diagram for QWindowsDrag:

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.
Public Member Functions inherited from QPlatformDrag
 QPlatformDrag ()
virtual ~QPlatformDrag ()
QDrag * currentDrag () const
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 Public Member Functions inherited from QPlatformDrag
static QPixmap defaultPixmap ()

Detailed Description

Windows drag implementation.

Definition at line 51 of file qwindowsdrag.h.

Constructor & Destructor Documentation

◆ QWindowsDrag()

QWindowsDrag::QWindowsDrag ( )
default

◆ ~QWindowsDrag()

QWindowsDrag::~QWindowsDrag ( )
virtual

Definition at line 622 of file qwindowsdrag.cpp.

Member Function Documentation

◆ cancelDrag()

void QWindowsDrag::cancelDrag ( )
inlineoverridevirtual

Cancels the currently active drag (only for drags of the current application initiated by QPlatformDrag::drag()).

The default implementation does nothing.

Since
5.7

Reimplemented from QPlatformDrag.

Definition at line 60 of file qwindowsdrag.h.

◆ drag()

Qt::DropAction QWindowsDrag::drag ( QDrag * drag)
overridevirtual

Implements QPlatformDrag.

Definition at line 731 of file qwindowsdrag.cpp.

References QWindowsDropDataObject::QWindowsDropDataObject(), QWindowsOleDropSource::QWindowsOleDropSource(), and QWindowsOleDropSource::createCursors().

Here is the call graph for this function:

◆ dropData()

QMimeData * QWindowsDrag::dropData ( )

Return data for a drop in process.

If it stems from a current drag, use a shortcut.

Definition at line 632 of file qwindowsdrag.cpp.

◆ dropDataObject()

IDataObject * QWindowsDrag::dropDataObject ( ) const
inline

Definition at line 63 of file qwindowsdrag.h.

◆ dropHelper()

IDropTargetHelper * QWindowsDrag::dropHelper ( )

May be used to handle extended cursors functionality for drags from outside the app.

Definition at line 642 of file qwindowsdrag.cpp.

◆ instance()

QWindowsDrag * QWindowsDrag::instance ( )
static

Definition at line 772 of file qwindowsdrag.cpp.

References QWindowsIntegration::instance().

Referenced by QWindowsDropMimeData::retrieveDataObject().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isCanceled()

bool QWindowsDrag::isCanceled ( )
inlinestatic

Definition at line 61 of file qwindowsdrag.h.

◆ releaseDropDataObject()

void QWindowsDrag::releaseDropDataObject ( )

Definition at line 777 of file qwindowsdrag.cpp.

◆ setDropDataObject()

void QWindowsDrag::setDropDataObject ( IDataObject * dataObject)
inline

Definition at line 64 of file qwindowsdrag.h.


The documentation for this class was generated from the following files: