From 5f8f04721a61398b71afac017b10150663afbbbd Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周六, 02 12月 2023 03:33:18 +0800 Subject: [PATCH] CMake: Optimize --- 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..20d79a9 100644 --- a/src/core/qwkcoreglobal.h +++ b/src/core/qwkcoreglobal.h @@ -1,7 +1,7 @@ #ifndef QWKCOREGLOBAL_H #define QWKCOREGLOBAL_H -#include <QtGlobal> +#include <QtCore/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