diff --git a/src/imageformats/chunks.cpp b/src/imageformats/chunks.cpp index 1c14cfe..a40bfba 100644 --- a/src/imageformats/chunks.cpp +++ b/src/imageformats/chunks.cpp @@ -11,9 +11,12 @@ #include #include #include -#include -Q_DECLARE_LOGGING_CATEGORY(LOG_IFFPLUGIN) +#ifdef QT_DEBUG +Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.iff", QtDebugMsg) +#else +Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.iff", QtWarningMsg) +#endif #define RECURSION_PROTECTION 10 diff --git a/src/imageformats/chunks_p.h b/src/imageformats/chunks_p.h index 9805c5a..f8cb533 100644 --- a/src/imageformats/chunks_p.h +++ b/src/imageformats/chunks_p.h @@ -19,12 +19,15 @@ #include #include #include +#include #include #include #include #include "microexif_p.h" +Q_DECLARE_LOGGING_CATEGORY(LOG_IFFPLUGIN) + // Main chunks (Standard) #define CAT__CHUNK QByteArray("CAT ") #define FILL_CHUNK QByteArray(" ") diff --git a/src/imageformats/iff.cpp b/src/imageformats/iff.cpp index 00772df..2eb8de0 100644 --- a/src/imageformats/iff.cpp +++ b/src/imageformats/iff.cpp @@ -11,15 +11,8 @@ #include #include -#include #include -#ifdef QT_DEBUG -Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.iff", QtDebugMsg) -#else -Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.iff", QtWarningMsg) -#endif - class IFFHandlerPrivate { public: diff --git a/src/imageformats/sct.cpp b/src/imageformats/sct.cpp index 8405731..8f70be5 100644 --- a/src/imageformats/sct.cpp +++ b/src/imageformats/sct.cpp @@ -17,8 +17,7 @@ #include #include -Q_DECLARE_LOGGING_CATEGORY(LOG_IFFPLUGIN) -Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.scitex", QtWarningMsg) +Q_LOGGING_CATEGORY(LOG_SCTPLUGIN, "kf.imageformats.plugins.scitex", QtWarningMsg) #define CTRLBLOCK_SIZE 256 #define PRMSBLOCK_SIZE_CT 256