From 426308a93bc4ab52faa40fe53d3c0e52fce4072c Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 28 Sep 2020 10:49:28 +0200 Subject: Add logging categories to image handlers Change-Id: Ia0c47826d08b3f641c17d8a585f62d008a8b095b Reviewed-by: Eirik Aavitsland --- src/plugins/imageformats/gif/qgifhandler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/plugins/imageformats/gif') diff --git a/src/plugins/imageformats/gif/qgifhandler.cpp b/src/plugins/imageformats/gif/qgifhandler.cpp index 7ef0d076bb..2103f5f6fe 100644 --- a/src/plugins/imageformats/gif/qgifhandler.cpp +++ b/src/plugins/imageformats/gif/qgifhandler.cpp @@ -46,10 +46,13 @@ #include #include +#include #include QT_BEGIN_NAMESPACE +Q_LOGGING_CATEGORY(lcGif, "qt.gui.imageio.gif") + #define Q_TRANSPARENT 0x00ffffff // avoid going through QImage::scanLine() which calls detach @@ -1121,7 +1124,7 @@ bool QGifHandler::canRead() const bool QGifHandler::canRead(QIODevice *device) { if (!device) { - qWarning("QGifHandler::canRead() called with no device"); + qCWarning(lcGif, "QGifHandler::canRead() called with no device"); return false; } -- cgit v1.2.3