From b1847f9ebb45fcdeb4488f8acd7df2b9ee75906a Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 3 Jun 2014 19:34:36 -0300 Subject: Also hold a pointer to the struct picture on the model. Changes to hold a pointer to the struct picture on the model, so we can use it to determine the correct positioning of the image on the profile. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/divepicturewidget.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'qt-ui/divepicturewidget.h') diff --git a/qt-ui/divepicturewidget.h b/qt-ui/divepicturewidget.h index 351ae445c..d66b3053f 100644 --- a/qt-ui/divepicturewidget.h +++ b/qt-ui/divepicturewidget.h @@ -6,6 +6,12 @@ #include #include +struct picture; +struct PhotoHelper{ + QImage image; + struct picture *picture; +}; + class DivePictureModel : public QAbstractTableModel { Q_OBJECT public: @@ -20,7 +26,7 @@ private: // Currently, load the images on the fly // Later, use a thread to load the images // Later, save the thumbnails so we don't need to reopen every time. - QHash stringPixmapCache; + QHash stringPixmapCache; }; class DivePictureDelegate : QStyledItemDelegate { -- cgit v1.2.3-70-g09d2