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>.
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 ()
 
QMimeDatadropData ()
 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 ()
 
QDragcurrentDrag () 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 QWindowsDraginstance ()
 
static bool isCanceled ()
 
- Static Public Member Functions inherited from QPlatformDrag
static QPixmap defaultPixmap ()
 

Detailed Description

Windows drag implementation.

Definition at line 50 of file qwindowsdrag.h.

Constructor & Destructor Documentation

◆ QWindowsDrag()

QWindowsDrag::QWindowsDrag ( )
default

◆ ~QWindowsDrag()

QWindowsDrag::~QWindowsDrag ( )
virtual

Definition at line 620 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 59 of file qwindowsdrag.h.

◆ drag()

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

Implements QPlatformDrag.

Definition at line 729 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().

+ Here is the call graph for this function:
+ Here is the caller 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 630 of file qwindowsdrag.cpp.

References QPlatformDrag::currentDrag(), and drag().

Referenced by drag().

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

◆ dropDataObject()

IDataObject * QWindowsDrag::dropDataObject ( ) const
inline

Definition at line 62 of file qwindowsdrag.h.

Referenced by drag().

+ Here is the caller graph for this function:

◆ dropHelper()

IDropTargetHelper * QWindowsDrag::dropHelper ( )

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

Definition at line 640 of file qwindowsdrag.cpp.

◆ instance()

QWindowsDrag * QWindowsDrag::instance ( )
static

Definition at line 770 of file qwindowsdrag.cpp.

References QWindowsIntegration::instance().

Referenced by QWindowsOleDropTarget::DragLeave(), QWindowsOleDropTarget::DragOver(), and QWindowsDropMimeData::retrieveDataObject().

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

◆ isCanceled()

static bool QWindowsDrag::isCanceled ( )
inlinestatic

Definition at line 60 of file qwindowsdrag.h.

Referenced by QWindowsOleDropSource::QueryContinueDrag().

+ Here is the caller graph for this function:

◆ releaseDropDataObject()

void QWindowsDrag::releaseDropDataObject ( )

Definition at line 775 of file qwindowsdrag.cpp.

References qCDebug.

◆ setDropDataObject()

void QWindowsDrag::setDropDataObject ( IDataObject * dataObject)
inline

Definition at line 63 of file qwindowsdrag.h.


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