aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/ECMQtDeclareLoggingCategory.cmake3
-rw-r--r--modules/ECMQtDeclareLoggingCategory.h.in1
2 files changed, 4 insertions, 0 deletions
diff --git a/modules/ECMQtDeclareLoggingCategory.cmake b/modules/ECMQtDeclareLoggingCategory.cmake
index b7f1ad39..3f7bb79a 100644
--- a/modules/ECMQtDeclareLoggingCategory.cmake
+++ b/modules/ECMQtDeclareLoggingCategory.cmake
@@ -30,6 +30,9 @@
#
# ``<identifier>`` may include namespaces (eg: ``foo::bar::IDENT``).
#
+# Starting with Frameworks 5.18, the generated header also includes the <QDebug>
+# header, so you don't have to put extra #include <QDebug> anymore in your code.
+#
# Since 5.14.0.
#=============================================================================
diff --git a/modules/ECMQtDeclareLoggingCategory.h.in b/modules/ECMQtDeclareLoggingCategory.h.in
index fedecd2f..b59bc7aa 100644
--- a/modules/ECMQtDeclareLoggingCategory.h.in
+++ b/modules/ECMQtDeclareLoggingCategory.h.in
@@ -4,6 +4,7 @@
#define @GUARD_NAME@
#include <QLoggingCategory>
+#include <QDebug>
@OPEN_NAMESPACES@
Q_DECLARE_LOGGING_CATEGORY(@IDENTIFIER@)
@CLOSE_NAMESPACES@