From 1a1f26d9e4ab6a4fe51baa78e40c4cdf3f402bcf Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: ćšć, 07 12æ 2023 14:27:00 +0800 Subject: [PATCH] Add context factory --- src/core/qwkcoreglobal_p.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/core/qwkcoreglobal_p.h b/src/core/qwkcoreglobal_p.h index 52e9653..d18b54f 100644 --- a/src/core/qwkcoreglobal_p.h +++ b/src/core/qwkcoreglobal_p.h @@ -3,6 +3,7 @@ #include <QtCore/QEvent> #include <QtCore/QLoggingCategory> +#include <QtCore/QAbstractNativeEventFilter> #include <QtGui/QtEvents> #include <QWKCore/qwkcoreglobal.h> @@ -22,7 +23,16 @@ #define QWK_WARNING qCWarning(qWindowKitLog) #define QWK_CRITICAL qCCritical(qWindowKitLog) #if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0) -# define QWK_FATAL qCFatal(qWindowKitLog) +# define QWK_FATAL qCFatal(qWindowKitLog) #endif + +namespace QWK { + + QWK_CORE_EXPORT void installNativeEventFilter(QAbstractNativeEventFilter *eventFilter); + + QWK_CORE_EXPORT void removeNativeEventFilter(QAbstractNativeEventFilter *eventFilter); + +} + #endif // QWKCOREGLOBAL_P_H -- Gitblit v1.9.1