Qt 6.x
The Qt SDK
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.
 
- Public Member Functions inherited from QWindowsComBase< IDropSource >
 QWindowsComBase (ULONG initialRefCount=1)
 
virtual ~QWindowsComBase ()=default
 
HRESULT STDMETHODCALLTYPE QueryInterface (REFIID id, LPVOID *iface) override
 
ULONG STDMETHODCALLTYPE AddRef () override
 
ULONG STDMETHODCALLTYPE Release () override
 

Friends

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

Detailed Description

Implementation of IDropSource.

Used for drag operations.

See also
QWindowsDrag

Definition at line 170 of file qwindowsdrag.cpp.

Member Enumeration Documentation

◆ Mode

Enumerator
MouseDrag 
TouchDrag 

Definition at line 173 of file qwindowsdrag.cpp.

Constructor & Destructor Documentation

◆ QWindowsOleDropSource()

QWindowsOleDropSource::QWindowsOleDropSource ( QWindowsDrag drag)
explicit

Definition at line 213 of file qwindowsdrag.cpp.

References qCDebug.

◆ ~QWindowsOleDropSource()

QWindowsOleDropSource::~QWindowsOleDropSource ( )
override

Definition at line 223 of file qwindowsdrag.cpp.

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

+ Here is the call graph for this function:

Member Function Documentation

◆ createCursors()

◆ GiveFeedback()

QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP QWindowsOleDropSource::GiveFeedback ( DWORD  dwEffect)
override

Give feedback: Change cursor according to action.

Definition at line 391 of file qwindowsdrag.cpp.

References QPixmap::cacheKey(), QMap< Key, T >::constEnd(), QMap< Key, T >::constFind(), createCursors(), QPlatformDrag::currentDrag(), QWindowsCursor::cursorState(), QDrag::dragCursor(), e, 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 231 of file qwindowsdrag.cpp.


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