summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: