diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-09-28 10:49:28 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-09-30 08:39:45 +0200 |
commit | 426308a93bc4ab52faa40fe53d3c0e52fce4072c (patch) | |
tree | d97c2ee98340b6b3bd1a45be57825954a26404df /src/gui/image/qppmhandler.cpp | |
parent | b3db55fa6f2c63fafa421cb217df5038cdd13e98 (diff) |
Add logging categories to image handlers
Change-Id: Ia0c47826d08b3f641c17d8a585f62d008a8b095b
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/image/qppmhandler.cpp')
-rw-r--r-- | src/gui/image/qppmhandler.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/image/qppmhandler.cpp b/src/gui/image/qppmhandler.cpp index eccd750f1d..71dbefe354 100644 --- a/src/gui/image/qppmhandler.cpp +++ b/src/gui/image/qppmhandler.cpp @@ -41,14 +41,19 @@ #ifndef QT_NO_IMAGEFORMAT_PPM +#include <qdebug.h> #include <qimage.h> #include <qlist.h> +#include <qloggingcategory.h> +#include <qrgba64.h> #include <qvariant.h> + #include <ctype.h> -#include <qrgba64.h> QT_BEGIN_NAMESPACE +Q_DECLARE_LOGGING_CATEGORY(lcImageIo) + /***************************************************************************** PBM/PGM/PPM (ASCII and RAW) image read/write functions *****************************************************************************/ @@ -473,7 +478,7 @@ bool QPpmHandler::canRead() const bool QPpmHandler::canRead(QIODevice *device, QByteArray *subType) { if (!device) { - qWarning("QPpmHandler::canRead() called with no device"); + qCWarning(lcImageIo, "QPpmHandler::canRead() called with no device"); return false; } |