From a0bede6ff6a700a6eea9702c49d378f07de22f63 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 06 12月 2023 12:11:37 +0800 Subject: [PATCH] Fix title bar hover bug --- src/core/qwkcoreglobal_p.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/core/qwkcoreglobal_p.h b/src/core/qwkcoreglobal_p.h index bde882b..d18b54f 100644 --- a/src/core/qwkcoreglobal_p.h +++ b/src/core/qwkcoreglobal_p.h @@ -3,6 +3,8 @@ #include <QtCore/QEvent> #include <QtCore/QLoggingCategory> +#include <QtCore/QAbstractNativeEventFilter> +#include <QtGui/QtEvents> #include <QWKCore/qwkcoreglobal.h> @@ -24,4 +26,13 @@ # 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