From 027122452a25191b81fef8fe35f5b54768d435f2 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周六, 02 12月 2023 01:54:24 +0800 Subject: [PATCH] Add windows implementations --- src/core/qwkcoreglobal.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/core/qwkcoreglobal.h b/src/core/qwkcoreglobal.h index 7cba597..7c6b936 100644 --- a/src/core/qwkcoreglobal.h +++ b/src/core/qwkcoreglobal.h @@ -1,7 +1,7 @@ #ifndef QWKCOREGLOBAL_H #define QWKCOREGLOBAL_H -#include <QtGlobal> +#include <QLoggingCategory> #ifndef QWK_CORE_EXPORT # ifdef QWK_CORE_STATIC @@ -15,4 +15,11 @@ # endif #endif +QWK_CORE_EXPORT Q_DECLARE_LOGGING_CATEGORY(qWindowKitLog) + +#define QWK_INFO qCInfo(qWindowKitLog) +#define QWK_DEBUG qCDebug(qWindowKitLog) +#define QWK_WARNING qCWarning(qWindowKitLog) +#define QWK_CRITICAL qCCritical(qWindowKitLog) + #endif // QWKCOREGLOBAL_H -- Gitblit v1.9.1