From 2f5f1e036eb7f4dc74ee3a6ba00c62b565ec8df4 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 17 Dec 2017 14:48:04 +0100 Subject: Make scaleImages() a static function It was only used by the DivePictureModel class, no need to export it. Signed-off-by: Berthold Stoeger --- qt-models/divepicturemodel.cpp | 2 +- qt-models/divepicturemodel.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'qt-models') 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 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: -- cgit v1.2.3-70-g09d2