summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/divepicturemodel.cpp8
-rw-r--r--qt-models/divepicturemodel.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp
index f84146168..5948f426c 100644
--- a/qt-models/divepicturemodel.cpp
+++ b/qt-models/divepicturemodel.cpp
@@ -23,14 +23,6 @@ DivePictureModel::DivePictureModel() : rowDDStart(0),
this, &DivePictureModel::updateThumbnail, Qt::QueuedConnection);
}
-void DivePictureModel::updateDivePicturesWhenDone(QList<QFuture<void>> futures)
-{
- Q_FOREACH (QFuture<void> f, futures) {
- f.waitForFinished();
- }
- updateDivePictures();
-}
-
void DivePictureModel::setZoomLevel(int level)
{
zoomLevel = level / 10.0;
diff --git a/qt-models/divepicturemodel.h b/qt-models/divepicturemodel.h
index a7a3d7180..dd2f9cbd0 100644
--- a/qt-models/divepicturemodel.h
+++ b/qt-models/divepicturemodel.h
@@ -21,7 +21,6 @@ public:
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
virtual void updateDivePictures();
- void updateDivePicturesWhenDone(QList<QFuture<void>>);
void removePictures(const QVector<QString> &fileUrls);
int rowDDStart, rowDDEnd;
void updateDivePictureOffset(const QString &filename, int offsetSeconds);