17#include <QtCore/QObject>
18#include <QtCore/QLoggingCategory>
19#include <QtGui/QMouseEvent>
21#include <QWKCore/qwkglobal.h>
23QWK_CORE_EXPORT Q_DECLARE_LOGGING_CATEGORY(qWindowKitLog)
25#define QWK_INFO qCInfo(qWindowKitLog)
26#define QWK_DEBUG qCDebug(qWindowKitLog)
27#define QWK_WARNING qCWarning(qWindowKitLog)
28#define QWK_CRITICAL qCCritical(qWindowKitLog)
29#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
30# define QWK_FATAL qCFatal(qWindowKitLog)
33#define MAKE_RGB_COLOR(r, g, b) ((quint32) (((r) &0xFF) << 16) | (((g) &0xFF) << 8) | ((b) &0xFF))
35#define MAKE_RGBA_COLOR(r, g, b, a) \
36 ((quint32) (((a) &0xFF) << 24) | (((r) &0xFF) << 16) | (((g) &0xFF) << 8) | ((b) &0xFF))
39# define QWK_NOINLINE __declspec(noinline)
40# define QWK_INLINE __forceinline
43# define QWK_NOINLINE __attribute__((noinline))
44# define QWK_INLINE __attribute__((always_inline))
45# define QWK_USED __attribute__((used))
50 inline QPoint getMouseEventScenePos(
const QMouseEvent *event) {
52#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
53 return event->scenePosition().toPoint();
55 return event->windowPos().toPoint();
59 inline QPoint getMouseEventGlobalPos(
const QMouseEvent *event) {
61#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
62 return event->globalPosition().toPoint();
64 return event->screenPos().toPoint();
69 QWK_CORE_EXPORT
bool forwardObjectEventFilters(QObject *currentFilter, QObject *receiver,
QWindowKit namespace.
Definition abstractwindowcontext.cpp:13