summaryrefslogtreecommitdiffstats
path: root/qt-models/divepicturemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/divepicturemodel.h')
-rw-r--r--qt-models/divepicturemodel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-models/divepicturemodel.h b/qt-models/divepicturemodel.h
index 53a72076a..74f92f449 100644
--- a/qt-models/divepicturemodel.h
+++ b/qt-models/divepicturemodel.h
@@ -10,6 +10,7 @@ struct PictureEntry {
struct picture *picture;
QString filename;
QImage image;
+ QImage imageProfile; // For the profile widget keep a copy of a constant sized image
int offsetSeconds;
};
@@ -24,9 +25,13 @@ public:
void updateDivePicturesWhenDone(QList<QFuture<void>>);
void removePicture(const QString& fileUrl, bool last);
int rowDDStart, rowDDEnd;
+public slots:
+ void setZoomLevel(int level);
private:
DivePictureModel();
QList<PictureEntry> pictures;
+ double zoomLevel; // -1.0: minimum, 0.0: standard, 1.0: maximum
+ void updateThumbnails();
};
#endif