From 376b73789115833edbcdbed86d5e709cab2ab050 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 25 Mar 2018 16:46:16 +0200 Subject: Debug: sprinkle debug messages in thumbnailing code To ease trouble-shooting of the picture thumbnailer add a number of debug- and info-messages. Signed-off-by: Berthold Stoeger Signed-off-by: Lubomir I. Ivanov --- qt-models/divepicturemodel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-models') diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp index 6cb8cae07..804e2013f 100644 --- a/qt-models/divepicturemodel.cpp +++ b/qt-models/divepicturemodel.cpp @@ -23,6 +23,7 @@ static void scaleImages(PictureEntry &entry, int size, int maxSize) // If thumbnails were written by an earlier version, they might be smaller than needed. // Rescale in such a case to avoid resizing artifacts. if (thumbnail.isNull() || (thumbnail.size().width() < maxSize && thumbnail.size().height() < maxSize)) { + qDebug() << "No thumbnail in cache for" << entry.filename; thumbnail = SHashedImage(entry.picture).scaled(maxSize, maxSize, Qt::KeepAspectRatio); QMutexLocker l(&thumbnailMutex); thumbnailCache.insert(entry.filename, thumbnail); -- cgit v1.2.3-70-g09d2