aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--logging.cpp7
-rw-r--r--logging.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/logging.cpp b/logging.cpp
index 97540dd4..7476781f 100644
--- a/logging.cpp
+++ b/logging.cpp
@@ -18,6 +18,13 @@
#include "logging.h"
+#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
+#define LOGGING_CATEGORY(Name, Id) Q_LOGGING_CATEGORY((Name), (Id), QtInfoMsg)
+#else
+#define LOGGING_CATEGORY(Name, Id) Q_LOGGING_CATEGORY((Name), (Id))
+#endif
+
+// Use LOGGING_CATEGORY instead of Q_LOGGING_CATEGORY in the rest of the code
LOGGING_CATEGORY(MAIN, "libqmatrixclient.main")
LOGGING_CATEGORY(PROFILER, "libqmatrixclient.profiler")
LOGGING_CATEGORY(EVENTS, "libqmatrixclient.events")
diff --git a/logging.h b/logging.h
index a769568c..e2a4c9a7 100644
--- a/logging.h
+++ b/logging.h
@@ -27,13 +27,6 @@ Q_DECLARE_LOGGING_CATEGORY(EPHEMERAL)
Q_DECLARE_LOGGING_CATEGORY(JOBS)
Q_DECLARE_LOGGING_CATEGORY(SYNCJOB)
-// Use LOGGING_CATEGORY instead of Q_LOGGING_CATEGORY in the rest of the code
-#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
-#define LOGGING_CATEGORY(Name, Id) Q_LOGGING_CATEGORY((Name), (Id), QtInfoMsg)
-#else
-#define LOGGING_CATEGORY(Name, Id) Q_LOGGING_CATEGORY((Name), (Id))
-#endif
-
namespace QMatrixClient
{
// QDebug manipulators