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>
This commit is contained in:
Berthold Stoeger 2017-12-17 14:48:04 +01:00 committed by Dirk Hohndel
parent 78bafe8f62
commit 2f5f1e036e
2 changed files with 1 additions and 4 deletions

View file

@ -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()) {

View file

@ -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: