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

Implementation of IDropSource. More...

+ Inheritance diagram for QWindowsOleDropSource:
+ Collaboration diagram for QWindowsOleDropSource:

Public Types

enum  Mode { MouseDrag , TouchDrag }
 

Public Member Functions

 QWindowsOleDropSource (QWindowsDrag *drag)
 
 ~QWindowsOleDropSource () override
 
void createCursors ()
 Blend custom pixmap with cursors.
 
STDMETHOD QueryContinueDrag (BOOL fEscapePressed, DWORD grfKeyState) override
 Check for cancel.
 
STDMETHOD GiveFeedback (DWORD dwEffect) override
 Give feedback: Change cursor according to action.
 

Friends

QDebug operator<< (QDebug, const QWindowsOleDropSource::CursorEntry &)
 

Detailed Description

Implementation of IDropSource.

Used for drag operations.

See also
QWindowsDrag

Definition at line 172 of file qwindowsdrag.cpp.

Member Enumeration Documentation

◆ Mode

Enumerator
MouseDrag 
TouchDrag 

Definition at line 175 of file qwindowsdrag.cpp.

Constructor & Destructor Documentation

◆ QWindowsOleDropSource()

QWindowsOleDropSource::QWindowsOleDropSource ( QWindowsDrag * drag)
explicit

Definition at line 215 of file qwindowsdrag.cpp.

References qCDebug.

◆ ~QWindowsOleDropSource()

QWindowsOleDropSource::~QWindowsOleDropSource ( )
override

Definition at line 225 of file qwindowsdrag.cpp.

References QMap< Key, T >::clear(), and qCDebug.

+ Here is the call graph for this function:

Member Function Documentation

◆ createCursors()

void QWindowsOleDropSource::createCursors ( )

◆ GiveFeedback()

QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP QWindowsOleDropSource::GiveFeedback ( DWORD dwEffect)
override

Give feedback: Change cursor according to action.

Definition at line 393 of file qwindowsdrag.cpp.

References QPixmap::cacheKey(), QMap< Key, T >::constEnd(), QMap< Key, T >::constFind(), createCursors(), QPlatformDrag::currentDrag(), QWindowsCursor::cursorState(), QDrag::dragCursor(), it, MouseDrag, QCursor::pos(), QWindowsDragCursorWindow::setPixmap(), QWindow::show(), QWindowsCursor::Suppressed, TouchDrag, translateToQDragDropAction(), and QPlatformDrag::updateAction().

+ Here is the call graph for this function:

◆ QueryContinueDrag()

QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP QWindowsOleDropSource::QueryContinueDrag ( BOOL fEscapePressed,
DWORD grfKeyState )
override

Friends And Related Symbol Documentation

◆ operator<<

QDebug operator<< ( QDebug d,
const QWindowsOleDropSource::CursorEntry & e )
friend

Definition at line 233 of file qwindowsdrag.cpp.


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