From 9ec0be3dabf01ccd2cda2f088ed5bede396f2c56 Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周一, 04 12月 2023 14:59:53 +0800
Subject: [PATCH] wip

---
 src/core/qwkcoreglobal_p.h |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/core/qwkcoreglobal_p.h b/src/core/qwkcoreglobal_p.h
index 5f76437..52e9653 100644
--- a/src/core/qwkcoreglobal_p.h
+++ b/src/core/qwkcoreglobal_p.h
@@ -3,6 +3,7 @@
 
 #include <QtCore/QEvent>
 #include <QtCore/QLoggingCategory>
+#include <QtGui/QtEvents>
 
 #include <QWKCore/qwkcoreglobal.h>
 
@@ -21,16 +22,7 @@
 #define QWK_WARNING  qCWarning(qWindowKitLog)
 #define QWK_CRITICAL qCCritical(qWindowKitLog)
 #if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
-#  define QWK_FATAL qCFatal(qWindowKitLog)
-#endif
-
-// MOC can't handle C++ attributes before 5.15.
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
-#  define Q_NODISCARD    [[nodiscard]]
-#  define Q_MAYBE_UNUSED [[maybe_unused]]
-#else
-#  define Q_NODISCARD
-#  define Q_MAYBE_UNUSED
+#  define QWK_FATAL  qCFatal(qWindowKitLog)
 #endif
 
 #endif // QWKCOREGLOBAL_P_H

--
Gitblit v1.9.1