From b0249aebbacf71eee27e77c766ccb3dc33693b11 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周日, 10 12月 2023 13:54:14 +0800 Subject: [PATCH] a little simplify --- 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