From 3cfe15a9c3db0993d8b8fef5d148625840e5a75c Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 05 12月 2023 15:43:39 +0800 Subject: [PATCH] Add host interface --- 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