summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats/gif
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/imageformats/gif')
-rw-r--r--src/plugins/imageformats/gif/qgifhandler.cpp5
1 files changed, 4 insertions, 1 deletions
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 <qimage.h>
#include <qiodevice.h>
+#include <qloggingcategory.h>
#include <qvariant.h>
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;
}