summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-06-01 16:58:23 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-01 13:24:37 -0700
commitb8092c07a4b4d7715d825641e458be5fa56972d6 (patch)
tree81d7604b2f53fe234d83a09a3645616a681e9ba1 /qt-models/divelocationmodel.h
parent82d3f088a40545624f0d1ac61ca990e05325081c (diff)
downloadsubsurface-b8092c07a4b4d7715d825641e458be5fa56972d6.tar.gz
Create a new DiveSite when user clicks on add
Also reorganized a bit of the code, and renamed a few misleading methods. [Dirk Hohndel: remove some C++11 code] Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelocationmodel.h')
-rw-r--r--qt-models/divelocationmodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h
index 9238c4b5b..9d30adf41 100644
--- a/qt-models/divelocationmodel.h
+++ b/qt-models/divelocationmodel.h
@@ -10,6 +10,8 @@ public:
static LocationInformationModel *instance();
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index = QModelIndex(), int role = Qt::DisplayRole) const;
+ int32_t addDiveSite(const QString& name, int lat = 0, int lon = 0);
+
public slots:
void update();
private: