diff options
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/divepicturemodel.cpp | 2 | ||||
-rw-r--r-- | qt-models/divepicturemodel.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp index c881ce5bf..f0b5eff47 100644 --- a/qt-models/divepicturemodel.cpp +++ b/qt-models/divepicturemodel.cpp @@ -165,7 +165,7 @@ int DivePictureModel::findPictureId(const QString &filename) return -1; } -void DivePictureModel::updateThumbnail(QString filename, QImage thumbnail) +void DivePictureModel::updateThumbnail(QString filename, QImage thumbnail, duration_t) { int i = findPictureId(filename); if (i >= 0) { diff --git a/qt-models/divepicturemodel.h b/qt-models/divepicturemodel.h index 6dc633fb2..3bd872d6a 100644 --- a/qt-models/divepicturemodel.h +++ b/qt-models/divepicturemodel.h @@ -2,6 +2,8 @@ #ifndef DIVEPICTUREMODEL_H #define DIVEPICTUREMODEL_H +#include "core/units.h" + #include <QAbstractTableModel> #include <QImage> #include <QFuture> @@ -28,7 +30,7 @@ signals: void picturesRemoved(const QVector<QString> &fileUrls); public slots: void setZoomLevel(int level); - void updateThumbnail(QString filename, QImage thumbnail); + void updateThumbnail(QString filename, QImage thumbnail, duration_t duration); private: DivePictureModel(); QVector<PictureEntry> pictures; |