diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-08-06 10:14:18 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-15 04:59:01 -0700 |
commit | ed30059183f8a6d5d8e0692690f16f7f665fd369 (patch) | |
tree | 8b6fa24c49473c123e14d59193d117903b9a7de3 /qt-models/divepicturemodel.cpp | |
parent | 342479586d1f34a2b7f3d1d69037cb0d631489fa (diff) | |
download | subsurface-ed30059183f8a6d5d8e0692690f16f7f665fd369.tar.gz |
Add DiveSitePicturesModel
This model should be used inside the Edit Dive Site mode.
It should display all photos from all dives that are part
of this dive site, ignoring trips.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divepicturemodel.cpp')
-rw-r--r-- | qt-models/divepicturemodel.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp index 9e60404ed..06051dd28 100644 --- a/qt-models/divepicturemodel.cpp +++ b/qt-models/divepicturemodel.cpp @@ -5,12 +5,7 @@ #include <QtConcurrent> -typedef QList<struct picture *> SPictureList; -typedef struct picture *picturepointer; -typedef QPair<picturepointer, QImage> SPixmap; - - -static SPixmap scaleImages(picturepointer picture) +SPixmap scaleImages(picturepointer picture) { static QHash <QString, QImage > cache; SPixmap ret; @@ -126,4 +121,4 @@ void DivePictureModel::removePicture(const QString &fileUrl) int DivePictureModel::rowCount(const QModelIndex &parent) const { return numberOfPictures; -}
\ No newline at end of file +} |