summaryrefslogtreecommitdiffstats
path: root/qt-models/divesitepicturesmodel.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-08-06 10:14:18 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-15 04:59:01 -0700
commited30059183f8a6d5d8e0692690f16f7f665fd369 (patch)
tree8b6fa24c49473c123e14d59193d117903b9a7de3 /qt-models/divesitepicturesmodel.h
parent342479586d1f34a2b7f3d1d69037cb0d631489fa (diff)
downloadsubsurface-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/divesitepicturesmodel.h')
-rw-r--r--qt-models/divesitepicturesmodel.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/qt-models/divesitepicturesmodel.h b/qt-models/divesitepicturesmodel.h
new file mode 100644
index 000000000..f19f57cc2
--- /dev/null
+++ b/qt-models/divesitepicturesmodel.h
@@ -0,0 +1,15 @@
+#ifndef DIVESITEPICTURESMODEL_H
+#define DIVESITEPICTURESMODEL_H
+
+#include "divepicturemodel.h"
+
+class DiveSitePicturesModel : public DivePictureModel {
+ Q_OBJECT
+public:
+ static DiveSitePicturesModel *instance();
+ void updateDivePictures();
+private:
+ DiveSitePicturesModel();
+};
+
+#endif