diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-25 16:46:16 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-04-01 15:59:46 +0300 |
commit | 376b73789115833edbcdbed86d5e709cab2ab050 (patch) | |
tree | 11aa75b211df1f124cf69ee8d19a889bf4ebd548 /qt-models/divepicturemodel.cpp | |
parent | 028f53c63b1308aa07edb58c6393e26b447d6ee3 (diff) | |
download | subsurface-376b73789115833edbcdbed86d5e709cab2ab050.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-models/divepicturemodel.cpp')
-rw-r--r-- | qt-models/divepicturemodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |