diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-07-01 18:35:55 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-01 18:54:19 -0700 |
commit | 324b6182aa46fa8eb6c2c60c9fdcb40e00da6b32 (patch) | |
tree | a6eaf6a0ad04b3f877da05cb8a012ad5bcec566c /qt-models | |
parent | b8ae4c50b4d7db920ee8d19a880c73fe46f36528 (diff) | |
download | subsurface-324b6182aa46fa8eb6c2c60c9fdcb40e00da6b32.tar.gz |
Remove location completion model
This is a functional but hard to expand model for the dive sites.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/completionmodels.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/qt-models/completionmodels.cpp b/qt-models/completionmodels.cpp index f2e70afd1..ff2afd997 100644 --- a/qt-models/completionmodels.cpp +++ b/qt-models/completionmodels.cpp @@ -42,19 +42,6 @@ CREATE_CSV_UPDATE_METHOD(BuddyCompletionModel, buddy); CREATE_CSV_UPDATE_METHOD(DiveMasterCompletionModel, divemaster); CREATE_UPDATE_METHOD(SuitCompletionModel, suit); -void LocationCompletionModel::updateModel() -{ - QStringList list; - struct dive_site *ds; - int i = 0; - for_each_dive_site(i, ds) { - if (!list.contains(ds->name)) - list.append(ds->name); - } - std::sort(list.begin(), list.end()); - setStringList(list); -} - void TagCompletionModel::updateModel() { if (g_tag_list == NULL) |