summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-01 12:32:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-01 12:38:40 -0700
commita413141b334e89b0c9944bc403b8774f85427509 (patch)
tree323df09d9fa03984b3ce17340fb408633df46db5 /qt-models/divelocationmodel.cpp
parentf7b7d4c2df7fb82421588c69b3aa34e702dcbfdb (diff)
downloadsubsurface-a413141b334e89b0c9944bc403b8774f85427509.tar.gz
Geo taxonomy: adjust the preferences to the new data structures
This allows us to pick which three categories of geo taxonomy will be shown in the UI. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelocationmodel.cpp')
-rw-r--r--qt-models/divelocationmodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp
index e34e20a5d..32bccd5e1 100644
--- a/qt-models/divelocationmodel.cpp
+++ b/qt-models/divelocationmodel.cpp
@@ -99,6 +99,8 @@ GeoReferencingOptionsModel *GeoReferencingOptionsModel::instance() {
GeoReferencingOptionsModel::GeoReferencingOptionsModel(QObject *parent) : QStringListModel(parent)
{
QStringList list;
- list << "Country" << "State" << "District" << "Town" << "Suburb" << "Body of Water" << "Site Name";
+ int i;
+ for (i = 0; i < NR_CATEGORIES; i++)
+ list << taxonomy_category_names[i];
setStringList(list);
}