diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-08-25 13:57:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-25 13:57:12 -0700 |
commit | c22adebebe9792fc0471a5f4c2cab9de6aff1d6e (patch) | |
tree | 25a872afa0650a30c036fbf09aa872babfb5714b /qt-models/divelocationmodel.cpp | |
parent | ab255e07ea6060d1a36a5195f6be9cccd3e0ffcc (diff) | |
parent | 72817ff47f8a990aa043603ebe2d3ead1ff811c9 (diff) | |
download | subsurface-c22adebebe9792fc0471a5f4c2cab9de6aff1d6e.tar.gz |
Merge branch 'gitMerge'
Diffstat (limited to 'qt-models/divelocationmodel.cpp')
-rw-r--r-- | qt-models/divelocationmodel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp index 5aa3a3ac8..30b3f82ae 100644 --- a/qt-models/divelocationmodel.cpp +++ b/qt-models/divelocationmodel.cpp @@ -1,3 +1,4 @@ +#include "units.h" #include "divelocationmodel.h" #include "dive.h" #include <QDebug> @@ -126,14 +127,14 @@ void LocationInformationModel::update() endResetModel(); } -int32_t LocationInformationModel::addDiveSite(const QString& name, int lon, int lat) +int32_t LocationInformationModel::addDiveSite(const QString& name, timestamp_t divetime, int lon, int lat) { degrees_t latitude, longitude; latitude.udeg = lat; longitude.udeg = lon; beginInsertRows(QModelIndex(), dive_site_table.nr + 2, dive_site_table.nr + 2); - uint32_t uuid = create_dive_site_with_gps(name.toUtf8().data(), latitude, longitude); + uint32_t uuid = create_dive_site_with_gps(name.toUtf8().data(), latitude, longitude, divetime); qSort(dive_site_table.dive_sites, dive_site_table.dive_sites + dive_site_table.nr, dive_site_less_than); internalRowCount = dive_site_table.nr; endInsertRows(); |