summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-12-17 14:48:04 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-18 12:07:10 -0800
commit2f5f1e036eb7f4dc74ee3a6ba00c62b565ec8df4 (patch)
tree39b64c7354cadc9fca4fc693f8b3f99b2072e4ca
parent78bafe8f620a0661e12ad50e36c56251b499ab68 (diff)
downloadsubsurface-2f5f1e036eb7f4dc74ee3a6ba00c62b565ec8df4.tar.gz
Make scaleImages() a static function
It was only used by the DivePictureModel class, no need to export it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--qt-models/divepicturemodel.cpp2
-rw-r--r--qt-models/divepicturemodel.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp
index d886fd767..ff4e187ae 100644
--- a/qt-models/divepicturemodel.cpp
+++ b/qt-models/divepicturemodel.cpp
@@ -10,7 +10,7 @@
extern QHash <QString, QImage> thumbnailCache;
static QMutex thumbnailMutex;
-void scaleImages(PictureEntry &entry)
+static void scaleImages(PictureEntry &entry)
{
QMutexLocker l(&thumbnailMutex);
if (thumbnailCache.contains(entry.filename) && !thumbnailCache.value(entry.filename).isNull()) {
diff --git a/qt-models/divepicturemodel.h b/qt-models/divepicturemodel.h
index 9602d84bc..f20b7037b 100644
--- a/qt-models/divepicturemodel.h
+++ b/qt-models/divepicturemodel.h
@@ -13,9 +13,6 @@ struct PictureEntry {
int offsetSeconds;
};
-// function that will scale the pixmap, used inside the QtConcurrent thread.
-void scaleImages(PictureEntry &entry);
-
class DivePictureModel : public QAbstractTableModel {
Q_OBJECT
public: