summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-03-10 14:15:50 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-13 13:52:35 -0700
commit3967b1fd4d6ed2191daf12816d2cee1949c21d0b (patch)
tree5ca6cd3ce7858053c7f4133e6eaa3522f444d332 /core/qthelper.cpp
parentf60343eebbf6a31a4643dde9f4454f6ce84f61d3 (diff)
downloadsubsurface-3967b1fd4d6ed2191daf12816d2cee1949c21d0b.tar.gz
Dive pictures: Introduce thumbnailer class
Create a new class, which performs all thumbnailing code. This is mostly code reshuffling. Thumbnails are extracted either from a cache or thumbnail calculation is started in a worker thread. Since getHashedImage() is called from a worker thread it makes no sense to call subfunctions in yet another worker thread. Remove these calls. In contrast to the previous code, on error the background thread produces a failure image, but it is not yet shown. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 797dbf932..737e424ff 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -11,6 +11,9 @@
#include "gettextfromc.h"
#include "metadata.h"
#include <sys/time.h>
+#include "exif.h"
+#include "file.h"
+#include "imagedownloader.h"
#include "prefs-macros.h"
#include <QFile>
#include <QRegExp>