Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsimpledrag.cpp File Reference
#include "qsimpledrag_p.h"
#include "qbitmap.h"
#include "qdrag.h"
#include "qpixmap.h"
#include "qevent.h"
#include "qfile.h"
#include "qguiapplication.h"
#include "qpoint.h"
#include "qbuffer.h"
#include "qimage.h"
#include "qdir.h"
#include "qimagereader.h"
#include "qimagewriter.h"
#include "qplatformscreen.h"
#include "qplatformwindow.h"
#include <QtCore/QEventLoop>
#include <QtCore/QDebug>
#include <QtCore/QLoggingCategory>
#include <private/qguiapplication_p.h>
#include <private/qdnd_p.h>
#include <private/qshapedpixmapdndwindow_p.h>
#include <private/qhighdpiscaling_p.h>
+ Include dependency graph for qsimpledrag.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE QWindowtopLevelAt (const QPoint &pos)
 
static QPoint getNativeMousePos (QEvent *e, QWindow *window)
 
static QPoint fromNativeGlobalPixels (const QPoint &point)
 
static void sendDragLeave (QWindow *window)
 

Function Documentation

◆ fromNativeGlobalPixels()

static QPoint fromNativeGlobalPixels ( const QPoint point)
inlinestatic

Definition at line 308 of file qsimpledrag.cpp.

References QHighDpi::fromNativePixels(), QHighDpiScaling::isActive(), and QGuiApplicationPrivate::screen_list.

Referenced by QSimpleDrag::drop(), and QSimpleDrag::move().

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

◆ getNativeMousePos()

static QPoint getNativeMousePos ( QEvent e,
QWindow window 
)
inlinestatic

Definition at line 80 of file qsimpledrag.cpp.

References e, QHighDpi::toNativePixels(), and window().

Referenced by QBasicDrag::eventFilter().

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

◆ sendDragLeave()

static void sendDragLeave ( QWindow window)
static

Definition at line 365 of file qsimpledrag.cpp.

References Qt::IgnoreAction, and window().

Referenced by QSimpleDrag::cancel(), and QSimpleDrag::move().

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

◆ topLevelAt()

static QT_BEGIN_NAMESPACE QWindow * topLevelAt ( const QPoint pos)
static

Definition at line 35 of file qsimpledrag.cpp.

References QList< T >::crbegin(), QList< T >::crend(), it, list, pos, and QGuiApplication::topLevelWindows().

Referenced by QSimpleDrag::drop(), QBasicDrag::eventFilter(), QSimpleDrag::move(), and QSimpleDrag::startDrag().

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