aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMQtDeclareLoggingCategory.h.in
diff options
context:
space:
mode:
authorMartin Klapetek <mklapetek@kde.org>2015-12-21 14:30:19 -0500
committerMartin Klapetek <mklapetek@kde.org>2015-12-21 14:30:33 -0500
commit1d4bc35cf9383177459544d6fcd9de35edf3e77d (patch)
treec1906be3513aaa609272ce70e2bf25a4f5f36ac2 /modules/ECMQtDeclareLoggingCategory.h.in
parent942ba80dae253fef93094d178da3ce0abc47da5d (diff)
downloadextra-cmake-modules-1d4bc35cf9383177459544d6fcd9de35edf3e77d.tar.gz
extra-cmake-modules-1d4bc35cf9383177459544d6fcd9de35edf3e77d.tar.bz2
ECMQtDeclareLoggingCategory: Include <QDebug> with the generated file
In order to use the logging categories created by ECM, the generated header file has to be included but then also #include <QDebug> must be added to make it usable at all for qCDebug/qCWarning stuff. So this puts the #include <QDebug> into the generated header file and thus allowing to include a single header for qCDebug/qCWarning instead of two. REVIEW: 126368
Diffstat (limited to 'modules/ECMQtDeclareLoggingCategory.h.in')
-rw-r--r--modules/ECMQtDeclareLoggingCategory.h.in1
1 files changed, 1 insertions, 0 deletions
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@